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

Tell HN: Platform should have a downvote justification section

1•potato-peeler•1m ago•0 comments

India Saved Its Tigers

https://altermag.com/articles/how-india-actually-saved-its-tigers
1•trojanalert•2m ago•0 comments

For Love (Of Typography)

https://unsung.aresluna.org/for-love-of-typography/
1•frizlab•4m ago•1 comments

I refuse to pay for business email on every side project

https://github.com/sums001/OpenInbox
1•sumitgautam0101•7m ago•0 comments

Moonshot AI asking influencers not to disclose posts as paid when promoting Kimi

https://twitter.com/elshayib_/status/2113710752741892476
1•JumpCrisscross•8m ago•0 comments

Anthropic hacked to deliver remote access trojan to Claude developer laptops

https://doublepulsar.com/anthropic-hacked-to-deliver-remote-access-trojan-to-claude-developer-lap...
6•fk33•9m ago•1 comments

Some Polymarket user funds stolen by hackers

https://www.cnbc.com/2026/10/29/polymarket-reports-outage-on-international-exchange-halts-trading...
1•debo_•11m ago•0 comments

Stripe Made Agentic Payments Possible. Why Your Server Still Blocks the Agents

https://thebossmagazine.com/post/agentic-payments-ai-agents-retail-blocking/
1•Aninay•12m ago•0 comments

Lecture on exponential time hypothesis by Ryan O'Donnell

https://www.youtube.com/watch?v=_HlQGMcQWhA
1•rnbnnnn•12m ago•0 comments

Strategies Senior AI Developers Use to Deliver High-Quality Code in 2026

https://dailybusinessgroup.co.uk/2026/10/9-strategies-senior-ai-developers-use-to-deliver-high-qu...
1•Aninay•12m ago•0 comments

Show HN: Zwitch macOS App Switcher (free)

https://apps.apple.com/app/id6801471231
1•frnk-km•13m ago•0 comments

Learning with Errors

https://en.wikipedia.org/wiki/Learning_with_errors
1•jonbaer•18m ago•0 comments

What inference engine and KV offload engine do you use and why?

1•malikoyv•19m ago•0 comments

OpenAI doubles ChatGPT Pro usage limits after backlash over planned 50% cut

https://www.bleepingcomputer.com/news/artificial-intelligence/openai-doubles-chatgpt-pro-usage-li...
2•entryleveljobsc•21m ago•0 comments

Where do residential proxies come from Reddit AMA

https://www.reddit.com/r/WebScrapingInsider/comments/1xf9hdj/where_do_residential_proxies_really_...
1•joinmassive•22m ago•0 comments

How a Children’s Book Got Me Reading Again

https://minhaj.pagecord.com/the-graveyard-book
1•minhajkhan1•23m ago•0 comments

Consciousness Is Not Physical

https://lukesmith.xyz/articles/consciousness/
2•enemyz0r•24m ago•0 comments

Cohere Qwen incident URL samples

https://huggingface.co/spaces/Vil-Lakera/curl-trace-explorer
1•patresh•25m ago•0 comments

Antigenic operating system for my AI agents Claude Code, open claw, codex etc.

https://github.com/Dodaios/Dodaios
1•Dodaios•25m ago•0 comments

Show HN: LeanCIL – Prove properties of compiled .NET code in Lean 4

https://github.com/NethermindEth/LeanCIL
1•rescendent•26m ago•0 comments

Show HN: Prolog-WAF – A reverse WAF logic perimeter powered by Prolog

https://prologwaf.site/
1•lokinpendawa•28m ago•0 comments

Digital radio-based train control system

https://en.wikipedia.org/wiki/European_Train_Control_System
1•avp210•30m ago•1 comments

Invasion of the Sexy A.I. Joke Thieves

https://www.nytimes.com/2026/10/29/arts/ai-bots-jokes-theft-comedians.html
2•jakubmazanec•31m ago•2 comments

Anthropic hacked to deliver remote access trojan

https://doublepulsar.com/anthropic-hacked-to-deliver-remote-access-trojan-to-claude-developer-lap...
11•bashtoni•33m ago•2 comments

Laissez Faire, Laissez Mourir – Visualizing Plutocracy

https://david.alvarezrosa.com/posts/laissez-faire-laissez-mourir/
3•dalvrosa•34m ago•0 comments

Show HN: Anime Text Datasets for LLMs Training

https://github.com/muqeet-1138/anime-text-dataset
4•anitroves•37m ago•2 comments

Amazon, Alphabet, SpaceX and Meta are all to blame for the new tech stock rout

https://finance.yahoo.com/markets/stocks/article/amazon-alphabet-spacex-and-meta-are-all-to-blame...
1•__natty__•38m ago•0 comments

TornadoVM 8.0: Meet TC, TornadoVM's Own Compiler

https://www.tornadovm.org/blogs/tornadovm-8-0-0-tc-tornadovm-compiler
1•joshcsimmons•38m ago•0 comments

Unreleased Claude model turned a Linux kernel bug into a remote root exploit

https://twitter.com/intcyberdigest/status/2116081923902611934
1•rbanffy•39m ago•0 comments

Show HN: Stackapella, an open source web app for learning vocal harmony

https://stackapella.com/
1•hillelcoren•39m ago•0 comments