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•7mo ago

Comments

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

ChatGPT involvement in mentally-ill person's murder and suicide

https://en.wikipedia.org/wiki/Murder_of_Suzanne_Adams
1•d_silin•1m ago•0 comments

Show HN: Sessy – Open-source email observability for AWS SES

https://github.com/marckohlbrugge/sessy
1•marckohlbrugge•2m ago•0 comments

Fork Yeah: We're keeping ingress-Nginx alive

https://www.chainguard.dev/unchained/keeping-ingress-nginx-alive
1•gpi•5m ago•0 comments

Crazy Jam Jar: Match-3 Blast for Nonstop Fun

https://ibb22.com/casino/bbgame-13370/
1•gamedemoplayer•5m ago•1 comments

A Big, Long Day: The Fastest Known Time on the Everest Base Camp Trail

https://strivetrips.org/blog/ebc-writeup/
2•mcoliver•7m ago•0 comments

A new era of Stack Overflow

https://stackoverflow.blog/2025/12/30/a-new-era-of-stack-overflow/
1•gudzpoz•7m ago•0 comments

Sirius DB

https://www.sirius-db.com/
1•manoji•9m ago•0 comments

Conduit (Rust Matrix Server) v0.10.11 another critical vulnerability

https://conduit.rs/changelog/#v0-10-11-2025-12-30
2•acheong08•16m ago•0 comments

Apps Let You Bet on Deportations and Famine. Mainstream Media Is Eating It Up

https://theintercept.com/2025/12/29/polymarket-kalshi-betting-prediction-cnn-news-media/
2•thm•23m ago•0 comments

Show HN: S3Broker – CF Worker library to protect your S3 storage from ransomware

https://github.com/tsunrise/s3broker
1•tsunrise•24m ago•0 comments

Show HN: Perfetto2LLM - A tool to pass system traces to an LLM

https://perfetto-to-llm.vercel.app/
2•ak2242•25m ago•0 comments

Nexels

https://lessvrong.com/cs/nexels/
1•ibobev•26m ago•0 comments

Show HN: Supertictactoe.gg – A real-time PvP implementation of Ultimate TTT

https://supertictactoe.gg
1•dheesh•27m ago•0 comments

Direct3D 12: The Behavior of ClearUnorderedAccessViewUint/Float

https://asawicki.info/news_1795_secrets_of_direct3d_12_the_behavior_of_clearunorderedaccessviewui...
1•ibobev•27m ago•0 comments

Microsoft's Nadella overhauls leadership as he plots AI strategy beyond OpenAI

https://www.ft.com/content/255dbecc-5c57-4928-824f-b3f2d764f635
3•JamesAdir•27m ago•1 comments

OpenUSD Core Spec 1.0 is Here

https://aousd.org/blog/foundations-of-open-3d-development-introducing-aousd-core-specification-1-0/
1•ibobev•29m ago•0 comments

RunST does not prevent resources from escaping

https://welltypedwit.ch/posts/runst-does-not-prevent-resources-from-escaping.html
1•todsacerdoti•31m ago•0 comments

ByteDance to pour US$14B into Nvidia chips in 2026

https://www.scmp.com/tech/big-tech/article/3338191/bytedance-pour-us14-billion-nvidia-chips-2026-...
2•mfiguiere•32m ago•0 comments

New Yorker Dr. Berkan's New Channel RogoTRON

https://www.youtube.com/channel/UCGlaL2xCv4X1hDb1fQhU74w
1•northlondoner•35m ago•0 comments

Questions to ask yourself every year

https://gourav.io/blog/yearly-review
3•jerrygoyal•43m ago•2 comments

I Won a Teknofest 2025: A Step-by-Step Guide

https://www.notion.so/yapsgg/How-I-Won-a-TEKNOFEST-2025-A-Step-by-Step-Guide-2d2465f04ab58023bed5...
1•abdibrokhim•44m ago•1 comments

Study links America's favorite cooking oil to obesity

https://medicalxpress.com/news/2025-11-links-america-favorite-cooking-oil.html
2•PaulHoule•52m ago•0 comments

Show HN: Weekly newsletter with tactical frameworks from 50 $1M+ founders

https://www.doanything.com/preview/uXalImXcFZk
1•AlexMorganFndr•52m ago•0 comments

How musicals use motifs to tell stories

https://pudding.cool/2025/12/motifs/
1•gmays•59m ago•0 comments

Ask HN: What to do when Claude Code is writing code?

1•brihati•59m ago•1 comments

Show HN: Schengen Calculator – Avoid €5K Fines for Overstaying EU"

https://owlfacts.com
1•sunrays•1h ago•1 comments

A personal recap of 2025: on running, LLMs, family, coffee, work

https://dimitarmisev.com/blog/2025-recap
1•misev•1h ago•0 comments

I Built a Module System for a Language That Doesn't Have One

https://www.claudianadalin.com/blog/building-pinecone
1•xbmcuser•1h ago•0 comments

Show HN: Magic CSV – Transform CSVs with plain English, no formulas

https://magiccsv.app/
1•bored-developer•1h ago•0 comments

The Lore of the World: Field Notes for a Child's Codex

https://www.theintrinsicperspective.com/p/the-lore-of-the-world
3•Jun8•1h ago•0 comments