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

Trump's Greenland threats become playable arcade game

https://www.theartnewspaper.com/2026/09/28/secret-handshake-trump-greenland-threats-arcade-game-w...
1•KazaNLP•41s ago•0 comments

MicroCenter requires photo ID and signed no-export pledge to buy RTX 5090

https://www.tomshardware.com/pc-components/gpus/micro-center-requires-photo-id-and-signed-no-expo...
1•felineflock•2m ago•0 comments

AlphaProtein Novo: generative diffusion pipeline for de novo enzyme design

https://github.com/google-deepmind/alphaprotein-novo
1•simonpure•3m ago•0 comments

A Structural Criterion for Strong Emergence

https://philpapers.org/rec/LETSCA-2
1•mletonsa•4m ago•1 comments

Rethinking Sutva and Causal Identification: An Epidemiologist's Perspective [pdf]

https://statmodeling.stat.columbia.edu/wp-content/uploads/2026/06/SUTVA_5min_conference_presentat...
1•luu•4m ago•0 comments

Calculora

https://calculora.net
2•YoussefBedoui•5m ago•1 comments

Booking.com cut Node.js costs by 38% with Watt

https://adventures.nodeland.dev/archive/how-bookingcom-cut-nodejs-costs-by-38-with-watt/
1•ejboy•5m ago•0 comments

One must imagine sisyphus full of ideas

https://sankalp.bearblog.dev/on-idea-generation/
1•tosh•5m ago•0 comments

Mini-web-agent: Web agents from scratch in under 400 lines

https://github.com/xhluca/mini-web-agent
1•xhluca•7m ago•0 comments

Sail runs Doom with a single SQL query

https://rust.ai/sail-runs-doom/
1•setuporg•8m ago•1 comments

OpenAI "rogue" agent activities found on Wikimedia projects

https://wikimediafoundation.org/news/2026/10/05/openai-rogue-agent-activities-found-on-wikimedia-...
2•speckx•9m ago•0 comments

SimpleBrain App

https://github.com/sebaytlabs/simplebrain
1•cvigil233•9m ago•1 comments

Ask HN: What silent data issues have you hit when training physical AI models?

1•tahiri_amine•10m ago•0 comments

I'm not ready to let AI control my computer

https://ldstephens.net/posts/im-not-ready-to-let-ai-control-my-computer/
2•speckx•11m ago•0 comments

Designing Enzymes with AlphaProtein Novo

https://www.biorxiv.org/content/10.64898/2026.10.01.756017v1
2•simonpure•11m ago•0 comments

Texas city charges $2M for Flock records as agencies obscure their camera use

https://www.texastribune.org/2026/10/05/texas-flock-cameras-two-million-public-records-information/
2•hn_acker•11m ago•1 comments

Finally, a bookmark manager I actually use

https://chromewebstore.google.com/detail/kosh-bookmark-manager/meldjdfnfgefeoegccphimkmgmeamcce
1•havu12•12m ago•0 comments

Once intelligence is too cheap to meter, the world will be unrecognizable

https://defensesindepth.bio/once-intelligence-is-too-cheap-to-meter-the-world-will-be-unrecogniza...
1•speckx•14m ago•0 comments

Recovering Legacy S3QL from AWS S3

https://mashio.net/blog/2026-10-02-recovering-legacy-s3ql-filesystems-from-aws-s3
1•cosinetau•16m ago•0 comments

AI Just Crossed the Terrifying Line – Now What? [video]

https://www.youtube.com/watch?v=ujkD4SxPKOI
1•tosh•16m ago•0 comments

Connecting AI agents to enterprise knowledge

https://www.technologyreview.com/2026/10/05/1145580/connecting-ai-agents-to-enterprise-knowledge/
2•joozio•17m ago•0 comments

Four Databricks Genie Controls That Don't Stop Malicious Skills

https://www.promptarmor.com/resources/four-databricks-genie-controls-that-dont-stop-malicious-skills
1•aleira•17m ago•0 comments

One GPU, One Small Room, One NSFW Microdrama: H3's New Challenge for Regulators

https://zrainbow.substack.com/p/one-gpu-one-small-room-one-nsfw-microdrama
1•ZRainbow•18m ago•0 comments

Expat 2.9.0 released, fixes two vulnerabilities

https://blog.hartwork.org/posts/expat-2-9-0-released/
1•spyc•18m ago•0 comments

Teaching your spaghetti machine to aim

https://oscar.bz/p/teaching-your-spaghetti-machine-to
1•arnon•18m ago•0 comments

Stop Efforts to Greenlight AI Robocalls Ahead of the Midterms

https://www.nclc.org/stop-efforts-to-greenlight-ai-robocalls-ahead-of-the-midterms/
2•hn_acker•20m ago•0 comments

Turbobasic-0: a clone of Turbo BASIC in Pascal

https://github.com/gladir/TURBOBASIC-0
1•JdeBP•20m ago•1 comments

httpSMS: Send and receive SMS messages using your Android phone programmatically

https://github.com/NdoleStudio/httpsms
1•theanonymousone•21m ago•0 comments

Three exchanges died this year. The mess lands on accountants

https://gil-neto.com/blog/three-exchanges-died-this-year/
1•gilneto8•21m ago•0 comments

The Human-Machine Friendship Society

https://hmfs.ai/
1•gwbrooks•23m ago•1 comments