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 ...

Into the Shadows: 3D game from Triton, supposed to release in 1995 but abandoned

https://www.gamesthatwerent.com/2024/04/into-the-shadows/
1•markus_zhang•25s ago•1 comments

Show HN: Learn distributed ML by playing a sci-fi browser game

https://simulator.zhebrak.io/?welcome
1•zhebrak•43s ago•0 comments

Why Do Investors Keep Buying Century Bonds?

https://thedailyeconomy.org/article/why-do-investors-keep-buying-century-bonds/
1•RickJWagner•52s ago•0 comments

Why I'm no longer releasing Linux builds of my games

https://bigosaur.com/blog/201-why-no-longer-linux-builds
1•babuskov•1m ago•0 comments

Beyond Oil: The Strait of Hormuz and the Global Food Risk

https://www.forbes.com/sites/rrapier/2026/03/01/beyond-oil-the-strait-of-hormuz-and-the-global-fo...
1•AndrewDucker•1m ago•0 comments

Why Claude Runs on Electron and Not ClaudeVM

https://jperla.com/blog/claude-electron-not-claudevm
1•ljlolel•1m ago•0 comments

Geometric and Control-Theoretic Limits on Drone Density in Bounded Airspace

https://www.mdpi.com/2504-446X/10/2/139
1•PaulHoule•2m ago•0 comments

Show HN: A Chrome extension that adds private notes to Pinterest pins

https://chromewebstore.google.com/detail/pinterest-notes-organizer/pjipjbaeocglhcfegkkalkglagojapom
1•losalah•4m ago•0 comments

When the Model Is the Machine

https://blog.mikegchambers.com/posts/when-the-model-is-the-machine/
1•mikegchambers•6m ago•1 comments

Rhode Island Files First-in-Nation Single-Room Occupancy Model Legislation

https://ij.org/press-release/rhode-island-files-first-in-nation-single-room-occupancy-model-legis...
1•mhb•10m ago•0 comments

SpaceWar – Maybe the Most Important Computer Game

https://wheels.org/spacewar/index.html
1•TigerUniversity•11m ago•0 comments

Wall Street's Capital Discipline is why US oil production won't ramp up at $100

https://www.governance.fyi/p/wall-street-killed-the-wildcatters
1•daveland•11m ago•2 comments

Privacy Pass

https://privacypass.github.io/
1•nothrowaways•12m ago•0 comments

Show HN: What % of your commits were written by AI?

https://technically-your-name-is-on-it.btao.org/
1•tao_oat•12m ago•0 comments

Show HN: Not_pad: local idea hub, Windows, single .exe, no install, zip

https://github.com/SylvaMoth/not_pad/releases/tag/v0.98.3-Beta
1•SylvaM•12m ago•0 comments

Software Engineering Isn't Dead Yet

https://deadneurons.substack.com/p/software-engineering-isnt-dead-yet
1•nr378•15m ago•0 comments

Painting that made Turner's name gets second public showing since 1799

https://www.thetimes.com/culture/art/article/painting-turner-abergavenny-bridge-rcvx8hglh
1•bookofjoe•15m ago•0 comments

$82,000 in 48 Hours from stolen Gemini API Key vs. normal monthly Usage Of $180

https://old.reddit.com/r/googlecloud/comments/1reqtvi/82000_in_48_hours_from_stolen_gemini_api_ke...
2•NewCzech•15m ago•1 comments

Glaze

https://www.raycast.com/blog/introducing-glaze
1•romac•17m ago•0 comments

Glaze by Raycast

https://www.glazeapp.com/
9•romac•17m ago•0 comments

Editing changes in patch format with Jujutsu

https://www.knifepoint.net/~kat/kb-jj-patchedit.html
1•cassepipe•18m ago•0 comments

Ancient Greece's most famous oracle was just high on gas fumes

https://www.popsci.com/science/oracle-of-delphi-drugs/
2•Brajeshwar•20m ago•1 comments

India's tech sovereignty is built on digital dependence

https://restofworld.org/2026/dwaipayan-banerjee-india-technology-book/
1•Brajeshwar•21m ago•0 comments

Polymarket Removes Betting on Nuclear Detonation After Backlash

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-03-04-2026/card/polymarket-...
2•CPLX•22m ago•0 comments

Show HN: Peerful – Gen-Z focused professional networking platform

https://peerful.ai
1•HyphenFrox•22m ago•0 comments

Show HN: Seoscan – Full SEO audit from the terminal with AI-powered fixes

https://github.com/Recognity/seoscan
1•recognity•22m ago•1 comments

Audible launches cheaper ($8.99) 'Standard' subscription plan–challenges Spotify

https://techcrunch.com/2026/03/03/audible-launches-a-cheaper-standard-subscription-plan-challengi...
1•bookofjoe•23m ago•0 comments

Show HN: SaaS Forge – Open-Source SaaS Boilerplate Generator

https://github.com/anoopkarnik/saas-forge
1•anoopbayesian•24m ago•0 comments

Peter Thiel's Physics Department

https://philippdubach.com/posts/peter-thiels-physics-department/
2•turbocon•24m ago•0 comments

Looking for a US or Canada student partner to find projects

http://kenneth.cudia.dev@gmail.com
1•kennethcudia•24m ago•1 comments