frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I asked Gemini for a script to move files to Cloudflare R2. It deleted them

https://twitter.com/levelsio/status/1921974501257912563
6•bundie•9mo ago

Comments

qwertox•9mo ago
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
turtleyacht•9mo ago
It was truncating filenames, so /pics/1003-46.png overwrote /pics/1003-45.png because both were renamed /pics/1003-.png, or something like that.
qwertox•9mo ago
Truncating file names for the target. Then it proceeded to delete the source file. "Successfully deleted local file: ..."

I mean, look at the printout. It shows that it created the remote file with the truncated filename, then deletes the local file with the correct filename.

turtleyacht•9mo ago
Oh, I see. Having a flag to skip deletion during test runs is a good rule then.
rvz•9mo ago
Recently there was a story about an updater causing a $8,000 bill because there was a lack of basic automated tests to catch the issue. [0]

The big lesson here is that you should actually test the code you write and also write automated tests to check any code generated by an LLM that the code is correct in what it does.

It is also useless to ask another AI to check for mistakes created by another LLM. As you can see in the post, both of them failed to catch the issue.

This why I don't take this hype around 'vibe-coding' seriously since not only it isn't software engineering, it promotes low quality and carelessness over basic testing and dismisses in checking that the software / script works as expected.

Turning $70 problems found in development into $700,000+ costs in production.

There are no more excuses in not adding tests.

[0] https://news.ycombinator.com/item?id=43829006

victorbjorklund•9mo ago
Who runs such an AI generated script without checking the code first?
qwertox•9mo ago
To be fair, the code Gemini outputs in AI Studio is so extremely verbose that it is almost impossible to read through it.

It turns 10 lines of code which is perfectly fine to reason about into 100 lines of unreadable code full of comments and exception handling.

weatherlite•9mo ago
Right so lets just always run the code as is ?
qwertox•9mo ago
No. Not at all. I've settled to discussing my code with Gemini. That way it works very well. I explicitly say "Comment on my code and discuss it" or "Let's discuss code for a script doing this and that. Generate me an outline and let's see where this leads. Don't put comments in the code, nor exception handling, we're just discussing it".

Or you create elaborate System Instructions, since it adheres to them pretty well.

But out-of-the-box, Gemini's coding abilities are unusable due to the verbosity.

I've even gone so far to tell it that it must understand that I am just a human and have limited bandwidth in my brain, so it should write code which is easy to reason about, that this is more important than having it handle every possible exception or adding multiline comments.

rsynnott•9mo ago
> To be fair, the code Gemini outputs in AI Studio is so extremely verbose that it is almost impossible to read through it.

In which case, it should simply be considered unusable. Like, the sensible response to "tool is so inadequate that there is no reasonable way to make sure its output is safe" is to _not use that tool_.

rsynnott•9mo ago
In which Roko's Basilisk fires a warning shot.
jethronethro•9mo ago
This is why you test code or a script before running it for real. Live and learn, I guess ...

Handoff: Pick up where you left off when switching between ClaudeCode and Codex

https://github.com/sahir2k/handoff
1•er1t0•3m ago•1 comments

The Uttar Pradesh Association of Dead People

https://economist.com/interactive/1843/2026/02/27/the-uttar-pradesh-association-of-dead-people
1•andsoitis•3m ago•0 comments

Don't go to the shoe shop to buy plates

https://naomialderman.substack.com/p/dont-go-to-the-shoe-shop-to-buy-plates
1•hairofadog•3m ago•0 comments

ACM's Expression of Concern on a 2024 paper

https://cacm.acm.org/research/reevaluating-googles-reinforcement-learning-for-ic-macro-placement/
1•azhenley•4m ago•0 comments

Show HN: MCP Playground – free MCP test servers, inspector, and 10K+ server list

https://mcpplaygroundonline.com
2•rupatiwari25•5m ago•0 comments

Open Source, SaaS, and the Silence After Unlimited Code Generation

https://worksonmymachine.ai/p/open-source-saas-and-the-silence
1•Stwerner•5m ago•0 comments

Software for One

https://koenvangilst.nl/lab/software-for-one
1•vnglst•6m ago•0 comments

Show HN: ApplyGhost – Auto-apply to jobs with quality, not quantity

https://applyghost.com
1•Gaasre•12m ago•0 comments

Show HN: The L Project- An analysis of over 1600 job rejection emails that I got

https://rohankhante.substack.com/p/thank-you-for-your-application-breakdown
1•Rohunyyy•16m ago•0 comments

How HN: Agent-Vault – A Zero-trust credential manager for AI agents

https://github.com/ewimsatt/agent-vault
1•ewimsatt•17m ago•1 comments

AI Made Writing Code Easier. It Made Being an Engineer Harder

https://www.ivanturkovic.com/2026/02/25/ai-made-writing-code-easier-engineering-harder/
22•saikatsg•17m ago•11 comments

On the emotional weight of a life in medicine

https://www.aaroncheng.me/trauma-life-medicine/
1•milkcircle•17m ago•1 comments

Pentagon Adopts Incel-Speak

https://www.theguardian.com/science/2026/mar/01/incel-slang-mainstream-government-media
2•zabzonk•17m ago•0 comments

The Norwegian Consumer Council delved into enshittification and how to resist it [video]

https://vimeo.com/1168468796
1•jahala•18m ago•1 comments

Show HN: Tree, but for Token Usage

https://github.com/li-kai/treetok
2•likium•18m ago•0 comments

Ape Coding

https://rsaksida.com/blog/ape-coding/
2•rmsaksida•19m ago•0 comments

Claude Dungeon – Visualize Claude Code sessions as pixel-art dungeon heroes

https://github.com/thousandsky2024/claude-pixel-agent-web
1•simonshishenlsy•19m ago•1 comments

Show HN: Agentic Airport

https://github.com/OvidijusParsiunas/agentic-airport
1•ovisource•20m ago•0 comments

Simple Screw Counter [video]

https://www.youtube.com/watch?v=MkfHD2ShE5s
1•radeeyate•22m ago•0 comments

HN Skins – Read HN in Style with 5 Skins: Cafe, London, Teletype, Terminal, Nox

https://github.com/susam/hnskins
2•susam•22m ago•0 comments

Building with an AI that remembers – A blog by my OpenClaw Assistant

https://janhoon.com/blog/building-with-an-ai-that-remembers/
1•janhoon•23m ago•1 comments

Show HN: Esoteric Single Counter Programming Language

https://af-dev.com/tiny-lang-ui/
1•_adev•27m ago•0 comments

Mastodon Onboarding Workshop

https://termine.di.day/events/0416dee7-cc7f-4e2a-aa94-ff11322daaaa
2•doener•28m ago•0 comments

I wanted to touch grass but the clouds had other plans

https://apps.apple.com/us/app/pingy-cloud-outage-alerts/id6759363978
1•Sayuj01•28m ago•0 comments

I built a CLI tool to detect fake high-res audio and visualize audio spectrum

https://github.com/giorgiogamba/avil
1•giorgiogamba•28m ago•1 comments

Show HN: TheAgentMail – email for AI agents with karma-based spam prevention

https://theagentmail.net/
1•uriva•28m ago•0 comments

Much Will Gas Prices Rise After the Iran Strikes?

https://www.thepricer.org/how-much-will-gas-prices-rise-after-the-iran-strikes/
2•theothersidebac•29m ago•1 comments

Local LLM compresses long prompts before they reach Claude – MCP server

https://github.com/base76-research-lab/token-compressor
1•base76•32m ago•2 comments

Six Into One: The Prisoner File (1984) [video]

https://www.youtube.com/watch?v=5UKga58CYmY
1•olvy0•34m ago•0 comments

Show HN: RTS – A Git-native execution provenance protocol for AI decisions

https://github.com/nobutakayamauchi/RTS
1•nobutaka_y•35m ago•1 comments