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

Comments

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

goose has a new home – the Agentic AI Foundation (AAIF)

https://goose-docs.ai/blog/2026/04/07/goose-moves-to-aaif/
1•wicket•1m ago•0 comments

Did Airbnb, Medium, Beats, and Flipboard Rip Off Their Logos? (2016)

https://thehustle.co/airbnb-medium-beats-flipboard-logo
1•bookofjoe•4m ago•0 comments

Verification Is the Next Bottleneck in AI-Assisted Development

https://www.opslane.com/blog/verification-bottleneck
1•aray07•4m ago•0 comments

OpenAI looks to take on Anthropic with $100 per month ChatGPT Pro subscriptions

https://www.cnbc.com/2026/04/09/openai-chatgpt-pro-subscription-anthropic-claude-code.html
1•HiroProtagonist•5m ago•0 comments

AI micro-dramas are shaking up Chinese entertainment

https://economist.com/china/2026/04/09/ai-micro-dramas-are-shaking-up-chinese-entertainment
1•andsoitis•7m ago•0 comments

The AI Jobs Blind Spot: Why Job Creation Is the Default

https://substack.norabble.com/p/the-ai-jobs-blind-spot
1•nedruod•9m ago•0 comments

Gitbutler

https://gitbutler.com/
1•handfuloflight•9m ago•0 comments

Perplexity computer is based on the OSS browser use library

https://twitter.com/mamagnus00/status/2042339700082610345
2•whytai•11m ago•0 comments

BYD teams up with KFC to offer 9 minute EV charging

https://electrek.co/2026/04/09/byd-fast-food-giant-offer-9-minute-ev-charging/
1•breve•11m ago•0 comments

Sora Fuel Raised $14.6M to Bottle the Sky

https://www.siliconsnark.com/sora-fuel-raised-14-6-million-to-bottle-the-sky-honestly-respect/
1•SaaSasaurus•12m ago•0 comments

IMDB created my account for merely visiting the site

4•astr0n0m3r•16m ago•1 comments

CNN investigation: Exposing a global 'rape academy'

https://www.cnn.com/interactive/2026/03/world/expose-rape-assault-online-vis-intl/index.html
4•1659447091•19m ago•0 comments

New to Hackerview

1•foxxyyybusiness•21m ago•3 comments

Show HN: Idontuselinkedin.com

https://idontuselinkedin.com
7•jmholla•22m ago•4 comments

InterviewGPT: Stop Guessing. Start Scaling. Land Your Dream FAANG Offer

https://interviewgpt.deepchill.app/
2•tiancaioyzy•23m ago•0 comments

Do Science in Bed

https://monsharen.github.io/Peer/
2•ycombinatornu•23m ago•0 comments

How Microsoft Abuses Its Users

https://lzon.ca/posts/other/microsoft-user-abuse/
3•jpmitchell•24m ago•0 comments

Apple and Lenovo have the least repairable laptops, analysis finds

https://arstechnica.com/gadgets/2026/04/apple-has-the-lowest-grades-in-laptop-phone-repairability...
1•josephcsible•25m ago•0 comments

Show HN: Solving digital piracy with game theory instead of DRM

https://piecely.app/explore
2•johndebord•26m ago•1 comments

Ford patents lip reading and emotion detection inside the car [video]

https://www.youtube.com/watch?v=g5V3cxjDaFU
3•_DeadFred_•28m ago•0 comments

Researchers turn recovered car battery acid, plastic waste into clean hydrogen

https://www.cam.ac.uk/research/news/researchers-turn-recovered-car-battery-acid-and-plastic-waste...
2•gmays•29m ago•0 comments

Open source, agentic knowledge bases for all of humanity's knowledge

https://alpharesearch.nyc/blog/launching-alpha-research/
2•rprend•30m ago•0 comments

Launch of Artemis II: Rocket Camera Views [video]

https://www.youtube.com/watch?v=mn7WMowM1xY
1•Yukonv•33m ago•0 comments

Moving from WordPress to Jekyll (and static site generators in general)

https://www.demandsphere.com/blog/rebuilding-demandsphere-with-jekyll-and-claude-code/
3•rgrieselhuber•33m ago•0 comments

Secure AI Agent Connections to Enterprise Tools

https://www.arcade.dev/blog/connect-ai-agents-enterprise-tools/
2•manveerc•33m ago•0 comments

What About Website Form Outreach

2•hjconstas•34m ago•1 comments

Show HN: We built the "LLM knowledge base" Karpathy described 9 yrs ago

https://mythos.one/me/brianswichkow/54528e
2•brianswichkow•37m ago•2 comments

Show HN: I built a weather site for the Eastern Caribbean

6•ashitlerferad•38m ago•0 comments

Rīgā, Madonas ielā, autovadītājus sagaida bīstami iegruvumi un bedres

https://lente.lv/latvija/raksts/riga-madonas-iela-autovaditajus-sagaida-bistami-iegruvumi-un-bedr...
1•janwebdev•38m ago•0 comments

I built an AI-powered Kanban board for your GitHub repos

https://github.com/Kill-The-Backlog/Kill-The-Backlog
1•jvaill•39m ago•1 comments