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•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 Conquest of Hip-Hop – pt. I

https://medium.com/the-hitmagist/the-conquest-of-hip-hop-pt-i-70534b69f4f4
1•bryanrasmussen•34s ago•0 comments

Jelly Tide: My Honest 30-Day Results (Shocking Before and After)

https://finance.yahoo.com/sectors/healthcare/articles/jelly-tide-gummies-exploding-2026-154100263...
1•ragymkalu•4m ago•0 comments

Establishing AI and data sovereignty in the age of autonomous systems

https://www.technologyreview.com/2026/05/14/1137168/establishing-ai-and-data-sovereignty-in-the-a...
2•joozio•4m ago•0 comments

Turn a bare VPS into an operational fortress in 15 minutes and 1 command

1•rockballslab•5m ago•0 comments

Cerebras risked dinner plate-sized AI accelerators. Today it's worth $66B

https://www.theregister.com/ai-ml/2026/05/15/cerebras-wafer-scale-ai-bet-delivers-blockbuster-ipo...
1•beardyw•7m ago•0 comments

'Everyone is unhappy': Meta faces grim mood, plans 8k layoffs soon amid cuts

https://www.aol.com/finance/everyone-unhappy-meta-employees-describe-151500588.html
1•01-_-•8m ago•0 comments

AI that improves itself indefinitely

https://techcrunch.com/2026/05/14/what-happens-when-ai-starts-building-itself/
3•russfink•9m ago•0 comments

PyCon US 2026 Typing Summit Recap

https://bernat.tech/posts/pycon-us-2026-typing-summit-recap/
2•gaborbernat•10m ago•1 comments

Morgan Stanley Bitcoin ETF $MSBT got an official listing announcement from NYSE

https://twitter.com/EricBalchunas/status/2036831654392561983
2•janandonly•12m ago•0 comments

The era of 15GB free Gmail storage is ending

https://www.androidauthority.com/google-gmail-5gb-free-storage-test-3667002/
3•01-_-•13m ago•0 comments

Android rolling out AI-powered "Contextual suggestion" learning from your habits

https://9to5google.com/2026/05/13/android-contextual-suggestions/
2•theanonymousone•13m ago•0 comments

AI makes weak engineers less harmful

https://www.seangoedecke.com/ai-makes-weak-engineers-less-harmful/
2•vismit2000•15m ago•0 comments

Google lets you move passkeys to another password manager on Android

https://www.androidauthority.com/google-passkeys-move-to-another-password-manager-android-3666965/
1•vdelitz•16m ago•0 comments

Out of the Tar Pit (2006) [pdf]

https://curtclifton.net/papers/MoseleyMarks06a.pdf
1•theanonymousone•25m ago•0 comments

A Design Space and Interaction Model of Abstraction in Interactive Systems

https://arxiv.org/abs/2605.11344
1•mrauha•25m ago•0 comments

Helpful tools from Google to keep your accounts safe

https://blog.google/innovation-and-ai/technology/safety-security/world-password-day-2026/
2•vdelitz•29m ago•0 comments

Make It Blink: Over-the-Air Exploitation of the Philips Hue Bridge

https://www.synacktiv.com/en/publications/make-it-blink-over-the-air-exploitation-of-the-philips-...
1•pieterr•35m ago•0 comments

Visual Chronology of Science and Discovery (2025)

https://invention.cards/
1•pimgeek•37m ago•1 comments

Mullvad VPN users have connectivity issues with Supabase

https://status.supabase.com/incidents/ybxpvtjys08w
1•dinoqqq•37m ago•0 comments

The Infinity Machine – Demis Hassabis and the Quest for Superintelligence

https://www.penguinrandomhouse.com/books/752231/the-infinity-machine-by-sebastian-mallaby/
2•zmeden•38m ago•0 comments

Medium's JavaScript Bloat, Gibberish Semantics, and Accessibility Failings

https://medium.com/codex/mediums-javascript-bloat-gibberish-semantics-and-accessibility-failings-...
1•hexage1814•42m ago•1 comments

Whom the Gods Would Destroy, They First Give Real-Time Analytics (2013)

https://mcfunley.com/whom-the-gods-would-destroy-they-first-give-real-time-analytics
1•downbad_•45m ago•0 comments

buffa – zero-copy Protobuf lib for Rust

https://github.com/anthropics/buffa
1•protortyp•47m ago•1 comments

DeepSeek V4: The Open-Source Model Frontier Labs Feared

https://helloai.com/articles/deepseek-v4-open-source-frontier-parity
1•HelloAi•52m ago•0 comments

The Keysigning Party HOWTO (2008)

https://www.cryptnet.net/fdp/crypto/keysigning_party/en/keysigning_party.html
1•greyface-•56m ago•0 comments

UK Government Kicks Out Palantir

https://shkspr.mobi/blog/2026/05/uk-government-kicks-out-palantir/
74•robin_reala•56m ago•12 comments

Show HN: We sent a humanoid robot to clean a stranger's apartment in SF

https://gatsby.bot/
3•frishberg•56m ago•2 comments

EaglePress has been created 2026 – PyPowered

https://topcodercloud.com/post/eaglepress-has-been-created
1•eagle10ne•57m ago•0 comments

Show HN: Proving – A Career Intelligence App

https://proving.app
1•binarycleric•1h ago•1 comments

Universal High Quality OCR and Book Translator

https://github.com/sweisman/translation-pipeline
1•sweisman•1h ago•1 comments