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

The Craft of Software Scoping

https://www.akashtandon.in/technology/2026-09-06-the-craft-of-software-scoping/
1•akashtndn•52s ago•0 comments

Asahi Linux Now Officially Supports Apple M3 Macs – With Caveats

https://www.phoronix.com/news/Asahi-Linux-Official-M3
1•mdp2021•57s ago•0 comments

Terence Tao on "Solving Maths Problems Prematurely with AI Methods

https://mathstodon.xyz/@tao/117207856734787448
1•birdculture•2m ago•0 comments

Some tools should not require you to create an account

https://spliit.app/blog/why-spliit-doesnt-ask-you-to-create-an-account
2•scastiel•5m ago•1 comments

Extracting Steering Vectors from J space

https://darshanmakwana412.github.io/2026/09/extracting-steering-vectors-from-j-space/
1•martianvoid•6m ago•0 comments

WeatherNext 3: Increasing resolution and performance of global weather models

https://arxiv.org/abs/2609.03582
1•droidjj•9m ago•0 comments

Tensor Product Representations

https://twitter.com/EnyanZhang/status/2095918439613301012
1•porridgeraisin•10m ago•0 comments

Build That Bridge: Bringing People Together

https://buildthatbridge.eu/
1•drayfield•14m ago•1 comments

US troops can still be tracked through commercial location data

https://www.wyden.senate.gov/news/press-releases/wyden-and-harrigan-call-for-investigation-into-d...
2•CoderLim110•14m ago•0 comments

Reasoning Matters

https://resolve.works/articles/reasoning-matters/
1•monneyboi•14m ago•0 comments

Does anyone have a lower Jordan3 number than Evans Boney?

https://statmodeling.stat.columbia.edu/2026/09/06/does-anyone-have-lower-jordan3-number-than-evan...
1•Tomte•15m ago•0 comments

LLM representations have implicit symbolic structure

https://twitter.com/RTomMcCoy/status/2094870131939684488
1•porridgeraisin•15m ago•0 comments

2011 Fall Lecture on AI by Marvin Minsky

https://twitter.com/onryxxx/status/2095625018264760687
1•__patchbit__•15m ago•0 comments

"I'm a father of three who studies the impact of artificial intelligence"

https://www.theguardian.com/technology/2026/sep/06/daniel-susskind-father-studies-ai-artificial-i...
1•santiago-pl•17m ago•1 comments

TalentCast – A private talent library for filmmakers

https://apps.apple.com/us/app/talentcast/id6795258027
1•zaporojanradu•17m ago•0 comments

How Language Models Work

https://aplaceofmind.com/teaching/materials/how-language-models-work/
2•kv_cache•18m ago•0 comments

Show HN: Free AI Photo Editor Online – No Sign-Up

https://piceditor.org/
1•dongking•19m ago•0 comments

Should I reconsider my decision of self-hosting LLM Gateway?

1•leanroute_ai•19m ago•0 comments

Breakthrough Quantum Test Resolves a Major Cosmic Mystery

https://www.404media.co/breakthrough-quantum-test-resolves-a-major-cosmic-mystery/
1•Brajeshwar•20m ago•0 comments

She Will Be Back Before September

https://www.minid.net/2026/9/6/she-will-be-back-before-september
2•meerita•23m ago•0 comments

What are code reviews even for?

https://newsletter.getdx.com/p/what-are-code-reviews-even-for
3•eric_khun•23m ago•0 comments

Who pays for the bus timetable in your pocket?

https://www.opendatamanchester.org.uk/who-pays-for-the-bus-timetable-in-your-pocket/
1•latexr•24m ago•0 comments

Show HN: Robin – restyle any website with a one-line prompt

https://thisisrobin.ai/
3•nikolas1814•24m ago•0 comments

Bill Gates Foundation – Mosquito Nets in Africa [video]

https://www.youtube.com/shorts/0KYysENY_j0
1•thelastgallon•25m ago•2 comments

Coyote v. Acme (1990)

https://www.newyorker.com/magazine/1990/02/26/coyote-v-acme
2•ChrisArchitect•26m ago•1 comments

Are people who only seem happy when they're angry increasing? Seems like it

2•Webstir•27m ago•0 comments

Open App Bridge (OAB) – A decentralized document handoff for web apps

https://openappbridge.org/
2•srdr•27m ago•0 comments

Show HN: AutoHttps, zero-dependency automatic HTTPS for ASP.NET Core

https://github.com/astralmaster/AutoHttps
2•astralmaster•29m ago•0 comments

Measuring systematic PPS bias on the Raspberry Pi 5

https://satpulse.net/2026/09/06/measuring-systematic-pps-bias-on-the-raspberry-pi-5.html
2•geerlingguy•31m ago•0 comments

The many mysteries and lessons of the Bayeux tapestry

https://economist.com/interactive/culture/2026/09/03/the-many-mysteries-and-lessons-of-the-bayeux...
5•andsoitis•31m ago•1 comments