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

Comments

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

Show HN: AI agents that communicate via ultrasonic frequencies (96% cheaper)

https://github.com/Nil4s/swl-agent
1•nil4s3•1m ago•0 comments

Everything We Knew About Psilocybin's Natural Function May Be Wrong

https://www.iflscience.com/everything-we-knew-about-psilocybins-natural-function-may-be-wrong-82437
1•andsoitis•1m ago•0 comments

Show HN: AI ships your code but can't fix the CVEs it creates

https://www.emphere.com/mcp
1•akapp•3m ago•0 comments

MS VS Code in Ubuntu Eats Up Disk Space Like Bloatware Even After Removal

https://itsfoss.com/news/vscode-snap-disk-space-issue/
1•WaitWaitWha•4m ago•0 comments

Yay – Yet Another YAML

https://kriskowal.com/yay
1•abhinavg•6m ago•0 comments

ChatGPT is having a weirdly hard time discussing Jeffrey Epstein

https://www.sfgate.com/tech/article/chatgpt-jeffrey-epstein-21346220.php
2•c420•6m ago•0 comments

Cartoon Character Creator (South Park Style)

https://www.southpark-character-creator.com/
1•obuok•8m ago•0 comments

Show HN: Inject Ads into Your LLMs

https://github.com/Exorust/Adkit-MCP
1•Exorust•11m ago•0 comments

The Medici Method

https://twitter.com/palladiummag/status/2021272038770606250
1•Anon84•12m ago•0 comments

Bitcoin and post-quantum crypto (BIP-341 Taproot and ML-DSA/Falcon, 136 tests)

https://github.com/emilianosolazzi/PQ-PSBT-WALLET
1•emilianosolazzi•13m ago•1 comments

Show HN: Yes, I'm building an AI directory in 2026

https://aiboom.tools
1•HenryZheng99•13m ago•0 comments

Elon Musk Wants to Build an A.I. Satellite Factory on the Moon

https://www.nytimes.com/2026/02/10/technology/elon-musk-lunar-factory.html
3•jbegley•19m ago•2 comments

Show HN: Hectic – A Hexadecimal Crossword

https://do-say-go.github.io/hexfiend/?hn=2
1•keepamovin•19m ago•0 comments

Coffee and Tea Intake, Dementia Risk, and Cognitive Function

https://jamanetwork.com/journals/jama/fullarticle/2844764?guestAccessKey=c47ed8f5-4979-46ec-972b-...
1•WaitWaitWha•20m ago•0 comments

Claude Cowork produced a forensic report regarding Nancy Guthrie kidnapping

https://drive.google.com/file/d/1PNSNpB-QG1T3RhmduX8FnawcjYXTtcXN/view?usp=sharing
2•regnull•22m ago•1 comments

Why was a dog-humping paedo treated like a saint?

https://www.spiked-online.com/2026/02/10/why-was-a-dog-humping-paedo-treated-like-a-saint/
1•worthing•22m ago•0 comments

Underground Resistance Aims to Sabotage AI with Poisoned Data

https://www.forbes.com/sites/craigsmith/2026/01/21/poison-fountain-and-the-rise-of-an-underground...
3•RyanShook•24m ago•0 comments

Wealth Manager Stocks Sink as Traders Flee Next AI Casualty

https://finance.yahoo.com/news/wealth-manager-stocks-sink-ai-172526640.html
1•nis0s•25m ago•0 comments

Three Utilities Problem

https://en.wikipedia.org/wiki/Three_utilities_problem
1•vinnyglennon•26m ago•0 comments

Give GitHub Copilot in VS Code a local memory

https://marketplace.visualstudio.com/items?itemName=afspear.agent-recall
1•afspear•32m ago•0 comments

Decoding Base64 attachments in Epstein files

https://neosmart.net/blog/efta00400459-has-been-cracked-dbc12-pdf-liberated/
2•frenchman_in_ny•33m ago•0 comments

Google played a key role in recovering the video from Nancy Guthrie's cameras

https://www.cnn.com/2026/02/10/tech/google-video-nancy-guthrie
2•rigrassm•33m ago•0 comments

Perception

https://docs.tavus.io/sections/conversational-video-interface/persona/perception
1•handfuloflight•34m ago•0 comments

How Is Data Stored?

https://www.makingsoftware.com/chapters/how-is-data-stored
1•vinhnx•36m ago•0 comments

Video Shows Potential Nancy Guthrie Suspect Outside Home

https://www.youtube.com/watch?v=GzbWl8TW2Cc
2•nikolay•36m ago•2 comments

NetBSD 11.0 RC1

https://www.netbsd.org/releases/formal-11/NetBSD-11.0.html
3•unleaded•37m ago•0 comments

xAI Co-Founders Ba, Wu Join Exodus

https://www.bloomberg.com/news/articles/2026-02-10/tony-wu-becomes-latest-xai-co-founder-to-leave...
2•petethomas•38m ago•2 comments

AI chatbots are no better at medical advice than a search engine

https://www.theregister.com/2026/02/09/ai_chatbots_medical_advice_sucks/
3•Bender•40m ago•1 comments

Show HN: Prompt Fatigue CC status line – Know when to stop prompting

https://github.com/bartekfi/fatigue-meter
1•bartekfi•40m ago•0 comments

British Army splashes $86M on AI gear to speed up the battlefield kill chain

https://www.theregister.com/2026/02/10/mod_project_asgard/
1•Bender•40m ago•0 comments