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

Comments

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

Infest: Special Edition

https://archive.org/details/infest.special-edition
1•rendx•56s ago•0 comments

Impressed by Synology Support

https://blog.notmyhostna.me/posts/impressed-by-synology-support
1•dewey•1m ago•0 comments

The 400-year software patch to a 10-day memory leak

https://ischemist.com/writings/note/calendar-memory-leak
1•hiddenseal•2m ago•0 comments

Microsoft Windows Media Player stops serving up CD album info

https://www.theregister.com/2026/01/09/microsoft_windows_media_player_forgets/
1•A4ET8a8uTh0_v2•3m ago•0 comments

Sergey Brin is joining Larry Page, in reducing ties to CA

https://www.nytimes.com/2026/01/09/technology/google-founders-california-wealth-tax.html
1•vlod•4m ago•0 comments

Cambridge college to target elite private schools for student recruitment

https://uk.news.yahoo.com/cambridge-college-target-elite-private-185806826.html
1•nephihaha•4m ago•0 comments

Claude Code Orchestrator – Parallel AI Development with Multiple Claude Sessions

https://github.com/reshashi/claude-orchestrator
1•shashimudunuri•4m ago•1 comments

Learning to work (very) remotely (2023)

https://borischerny.com/tech/2023/12/10/Working-Remotely.html
1•mooreds•6m ago•0 comments

A16Z: The Power Brokers

https://www.notboring.co/p/a16z-the-power-brokers
1•paulpauper•7m ago•0 comments

A Closer Look at the 2026 U.S. Food Guidelines

https://www.exfatloss.com/p/a-closer-look-at-the-2026-us-food
1•paulpauper•8m ago•0 comments

Social-MCP: new kind of social network

https://social-mcp.org/
2•gwainrib•8m ago•1 comments

Finding and Fixing a 50k Goroutine Leak That Nearly Killed Production

https://skoredin.pro/blog/golang/goroutine-leak-debugging
2•ibobev•9m ago•0 comments

Hexagonal Architecture in Go: Why Your "Clean" Code Is a Mess

https://skoredin.pro/blog/golang/hexagonal-architecture-go
1•ibobev•10m ago•0 comments

Nano Governments

https://shukla.io/blog/2026-01/nano-gov.html
1•BinRoo•11m ago•1 comments

We Default to Addition

https://www.ufried.com/blog/addition_bias/
1•todsacerdoti•11m ago•0 comments

Type-In Rescue: The C64 Autoboot Generator

https://bumbershootsoft.wordpress.com/2026/01/10/type-in-rescue-the-c64-autoboot-generator/
1•ibobev•12m ago•0 comments

DestinationDrivenCompilation

https://tailrecursion.com/~alan/Lisp/DestinationDrivenCompilation.html
1•mpweiher•12m ago•0 comments

Bespoke Software Is the Future

https://fzakaria.com/2026/01/01/bespoke-software-is-the-future
1•mpweiher•13m ago•0 comments

AI-generated police report mistakenly claims officer was transformed into a frog

https://www.fox13now.com/news/local-news/summit-county/how-utah-police-departments-are-using-ai-t...
2•zdragnar•14m ago•1 comments

Python: What's Coming in 2026

https://thenewstack.io/python-whats-coming-in-2026/
1•MilnerRoute•14m ago•0 comments

The Price of Mathematical Scepticism

https://arxiv.org/abs/2107.12925
1•hackandthink•14m ago•0 comments

'F*ck You, Make Me' Without Saying the Words

https://daringfireball.net/2026/01/fuck_you_make_me_without_saying_the_words
2•chmaynard•20m ago•0 comments

In the Path of a Raging Wildfire, a Luthier's Precious Wood

https://www.nytimes.com/2026/01/09/arts/music/eaton-fire-mario-miralles-violin-cello.html
2•bookofjoe•21m ago•1 comments

Ask HN: How are you balancing AI coding tools with junior developers growth?

2•rubslopes•24m ago•1 comments

Why Julia's GPU Accelerated Ode Solvers Are 20x-100x Faster Than Jax and PyTorch

https://www.stochasticlifestyle.com/why-julias-gpu-accelerated-ode-solvers-are-20x-100x-faster-th...
1•leephillips•25m ago•1 comments

Your Feelings Do Not Scale [video]

https://www.youtube.com/watch?v=6Lz8A6R5rbE
1•mooreds•25m ago•0 comments

Claude Code-native marketing consultant

https://github.com/itsbariscan/claude-code-marketing
2•bariscan•26m ago•0 comments

The Path to a New Smartphone Ecosystem

https://www.421.news/gael-duval-nuevo-ecosistema-mobile/
1•maelito•29m ago•0 comments

Artificial intelligence begins prescribing medications in Utah

https://www.politico.com/news/2026/01/06/artificial-intelligence-prescribing-medications-utah-007...
3•randycupertino•30m ago•1 comments

Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebases

https://arxiv.org/abs/2512.10398
1•erhuve•30m ago•0 comments