frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

qwertox•1y ago
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
turtleyacht•1y 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•1y 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•1y ago
Oh, I see. Having a flag to skip deletion during test runs is a good rule then.
rvz•1y 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•1y ago
Who runs such an AI generated script without checking the code first?
qwertox•1y 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•1y ago
Right so lets just always run the code as is ?
qwertox•1y 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•1y 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•1y ago
In which Roko's Basilisk fires a warning shot.
jethronethro•1y ago
This is why you test code or a script before running it for real. Live and learn, I guess ...

Microplastics in Household Dust

https://idw-online.de/en/news881452
1•randycupertino•56s ago•1 comments

Spotify September Outage: What we learnt

https://engineering.atspotify.com/2026/11/september-29-outage-incident-report-what-we-learnt
1•birdculture•4m ago•0 comments

The National Security Case for Public AI (2024) [pdf]

https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/412/2024/09/27201409/VPA-Paper-Nationa...
1•tomrod•6m ago•0 comments

Zmakebas+ A browser-based Sinclair BASIC editor

https://github.com/timex-sinclair-projects/zmakebas-plus
1•TheWoollyBully•6m ago•0 comments

The cost of misdiagnosing a performance problem

https://www.modernleader.is/p/the-cost-of-misdiagnosing-a-performance-problem
1•mooreds•6m ago•0 comments

Ask HN: Android takes 14GB on my phone. Why does it not include a manual?

1•RetroTechie•7m ago•0 comments

Ankusa: The Webhook Ingestion Framework I Always Wanted to Build

https://james-carr.org/posts/2026-11-28-introducing-ankusa-the-webhook-ingestion-framework-i-alwa...
1•carrja99•7m ago•0 comments

Show HN: A multiplayer soccer camp with clubhouses and friendly banter

https://bantercamp.com/
1•xeninox•9m ago•0 comments

Lloyds and Bank of Scotland apps fall over on payday

https://www.theregister.com/applications/2026/11/27/lloyds-and-bank-of-scotland-apps-fall-over-on...
2•Bender•10m ago•0 comments

Royal Navy orders £142M in minehunting drones from US supplier

https://www.theregister.com/offbeat/2026/11/27/royal-navy-orders-142m-in-minehunting-drones-from-...
1•Bender•10m ago•0 comments

AI boom leaves network operators waiting up to 18 months for kit

https://www.theregister.com/networks/2026/11/27/ai-boom-leaves-network-operators-waiting-up-to-18...
1•Bender•11m ago•0 comments

Squashfs maintainer: the AI assisted ability to find fault is exhausting

https://lore.kernel.org/all/20261123094313.336001b6251857b182339e6a@squashfs.org.uk/
1•acossta•11m ago•0 comments

Anthropic News Aggregator Site

https://anthropicnews.com/
1•cebert•12m ago•0 comments

Carrier's Constraint

https://en.wikipedia.org/wiki/Carrier%27s_constraint
1•Eridanus2•12m ago•0 comments

Show HN: Learn Japanese kanji by understanding their parts

https://p.migdal.pl/kanly/
3•stared•14m ago•1 comments

Global Conflict Tracker

https://www.cfr.org/global-conflict-tracker
1•mooreds•15m ago•0 comments

Nemotron-Labs-VisualCreation

https://huggingface.co/nvidia/Nemotron-Labs-Image-30B-A3B
1•pretext•15m ago•0 comments

View and vote on upcoming legislation of the SF Board of Supervisors every day

https://supervisor12.g0rdon.com/
1•gkamer8•17m ago•1 comments

Show HN: Agentic trading on Solana without exposing private keys

https://docs.beluga.financial/guides/agent-advisor/
1•trezm•19m ago•0 comments

Please add the agents tree to Linux-next – Sasha Levin

https://lore.kernel.org/lkml/20261126150925.2347325-2-sashal@kernel.org/
1•doener•19m ago•0 comments

Vera20k – Red Alert 2: Yuri's Revenge Rebuilt in Rust

https://vera20k.org/
1•lnyan•19m ago•0 comments

Immutability – A CI/CD Anthem [video]

https://www.youtube.com/watch?v=I-o5OU0oIeI
1•bartimus•19m ago•1 comments

Customer Experience Pain Points in SaaS (and How to Fix Each)

https://justonecx.substack.com/p/12-customer-experience-pain-points
1•justonecx•20m ago•0 comments

CMake 4.5.1 rewritten in Rust. Beats CMake across all 40 benchmarks

https://github.com/rcmake/rcmake
1•deyvium•20m ago•0 comments

Nah-core: Zero-dependency Python Bitcoin Taproot channel and <10MB verifier

https://github.com/geminibrc9999/nah-core
1•dendehomie•21m ago•0 comments

Rehired by the Machine That Fired You: How AI Boomerangs Work

https://smarterarticles.co.uk/rehired-by-the-machine-that-fired-you-how-ai-boomerangs-work
1•dxs•23m ago•0 comments

Paprika Powers This Village in Serbia

https://www.nytimes.com/interactive/2026/11/28/dining/paprika-pepper-serbia.html
1•mooreds•23m ago•0 comments

Nearly 2B credentials exposed in a publicly accessible database

https://www.expressvpn.com/research/2billion-credentials-exposed
3•basilgohar•23m ago•2 comments

Laserweb: Decoding and Playing 4K UHD Blu-ray Discs in the browser

https://jayd.ml/2026/11/29/laserweb-playing-4k-uhd-in-browser.html
1•jaydenmilne•24m ago•0 comments

TV Detector Van

https://en.wikipedia.org/wiki/TV_detector_van
2•alamortsubite•25m ago•1 comments