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

Reasons Teens Say No to AI

https://www.wsj.com/tech/ai/ai-avoidance-teenagers-7d1efa06
1•1vuio0pswjnm7•40s ago•0 comments

These nets used to catch fish. Now they're catching Russian drones

https://www.cnn.com/2026/02/01/europe/ukraine-fishing-farming-nets-drones-intl
1•asplake•2m ago•0 comments

Auto Trade Tool Pro – Generate Crypto/Forex Signals with Backtesting and Alerts

https://auto-trade-tool-pro.streamlit.app/
1•Dev_Master•3m ago•1 comments

Show HN: Zush – Native macOS menu bar app that AI-renames your images

https://www.zushapp.com/
1•lirik•5m ago•1 comments

You don't need to pay for third-party AV software to protect your PC anymore

https://www.howtogeek.com/you-dont-need-to-pay-for-third-party-antivirus-software-to-protect-your...
1•Corrado•6m ago•1 comments

Scorigami (football)

https://en.wikipedia.org/wiki/Scorigami
1•quuxplusone•8m ago•0 comments

Selfish AI

https://www.garfieldtech.com/blog/selfish-ai
1•todsacerdoti•13m ago•0 comments

DeepSeek-R1 Is Mathematically Bound to Hallucinate

https://gist.github.com/eric2675-coder/1ad468ce9daf8235b6936b812feb531b
1•eric2675•13m ago•1 comments

Show HN: A $200 DuckDB UI VSCode extension

https://github.com/ChuckJonas/duckdb-vscode
1•cjonas•15m ago•0 comments

At a clown school near Paris, failure is the lesson

https://www.npr.org/2026/02/01/nx-s1-5683115/france-gaulier-clown-school
1•1659447091•17m ago•0 comments

Iterabledata: Python lib to read and process and iterable data files

https://github.com/datenoio/iterabledata
1•ibegtin•19m ago•1 comments

Compiling Rust to readable C with Eurydice

https://lwn.net/SubscriberLink/1055211/6f51ebe751ce69a9/
1•todsacerdoti•20m ago•0 comments

Git-Link, an Emacs package to create links to Git objects

https://github.com/sshaw/git-link
1•mbork_pl•22m ago•1 comments

Top AI Image Enhancers in 2026: Free vs. Paid Real-World Tests

https://notegpt.io/ai-essay-writer
1•Ali-780•22m ago•1 comments

Advanced Square Foot Calculator

https://play.google.com/store/apps/details?id=com.sqftcalc.app&hl=en_US
2•Gigacore•27m ago•0 comments

Claudia Sahm on Kevin Warsh

https://stayathomemacro.substack.com/p/kevin-warsh
3•m-hodges•28m ago•1 comments

Show HN: Paramancer – Claude Code for Iterative 3D Models

https://www.paramancer.app
1•cdr6934•28m ago•2 comments

Brain cooling collar trial for head injury patients

https://www.bbc.com/news/articles/cq5yxwejen4o
2•1659447091•28m ago•0 comments

Huge fossil bonanza preserves 512-million-year-old ecosystem

https://www.newscientist.com/article/2513485-huge-fossil-bonanza-preserves-512-million-year-old-e...
1•teleforce•28m ago•0 comments

OpenClaw

https://github.com/openclaw/openclaw
1•simonebrunozzi•29m ago•0 comments

Mahatma Gandhi, the Missing Laureate

https://www.nobelprize.org/prizes/themes/mahatma-gandhi-the-missing-laureate/
2•thunderbong•30m ago•0 comments

Show HN: Joy_a mood tracker that feels like Inside Out meets Duolingo

https://letsfancy.com/joy
1•letsfancy•39m ago•0 comments

Welcome to the Room

https://www.jsnover.com/blog/2026/02/01/welcome-to-the-room/
1•Ozzie_osman•40m ago•0 comments

Are we dismissing AI spend before the 6x lands? (2025)

https://martinalderson.com/posts/are-we-dismissing-ai-spend-before-the-6x-lands/
3•ukuina•40m ago•0 comments

"Solving" Wordle from Shared Scores at 100%* Accuracy

https://marcoshuerta.com/posts/wordle_bluesky/
2•plaguna•45m ago•0 comments

How do you track contact lens replacement?

1•swetahs1•51m ago•1 comments

What Cloud Platforms Fear Most?

1•pennypeinee88•1h ago•0 comments

Vibe: Easy VM sandboxes for LLM agents on macOS

https://github.com/lynaghk/vibe
3•todsacerdoti•1h ago•0 comments

Chat Was the UI. Agents Are the Architecture

https://billykaplan.io/blog/agents-are-the-architecture/
1•billy1kaplan•1h ago•1 comments

Leaked Chats Expose the Daily Life of a Scam Compound's Enslaved Workforce

https://www.wired.com/story/the-red-bull-leaks/
8•smurda•1h ago•0 comments