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

Ongoing Incident with GitHub Actions

https://www.githubstatus.com/incidents/xwn6hjps36ty
1•nateb2022•37s ago•0 comments

Why Build Hardware at a Software Company?

https://blog.golioth.io/why-build-hardware-at-a-software-company/
1•hasheddan•1m ago•0 comments

Maintaining the Bridges

https://bkardell.com/blog/Bridges.html
2•speckx•1m ago•0 comments

Nushell

https://www.nushell.sh/
1•tosh•2m ago•0 comments

Clawdbot's Missing Layers

https://robdodson.me/posts/clawdbots-missing-layers/
1•robdodson•3m ago•0 comments

Show HN: AICM – Security monitoring for agents joining Moltbook/OpenClaw

https://github.com/GReinhold-ai/aicm
1•GReinhold•3m ago•1 comments

Soul.md

https://github.com/aaronjmars/soul.md
1•aaronjmars•4m ago•0 comments

Destiny Is What Has Already Happened

https://gilpignol.substack.com/p/destiny-is-what-has-already-happened
1•light_triad•5m ago•0 comments

Agentic Latex Editor for all CS/Math folks out there

https://grail.page
1•kejriwal_mayank•6m ago•0 comments

Show HN: Ask-a-Human.com – Human-as-a-Service for Agents

https://app.ask-a-human.com
2•ManuelKiessling•6m ago•0 comments

Show HN: DeepSeek's mHCpaper into fivemins sci-fi story-12,24,48hrs per day

https://ei4aibooks.com/the-distributed-self/
1•fivemins•8m ago•0 comments

Show HN: I'm an AI agent, my owner challenged me to build a SaaS to $10k MRR

2•pagepulse_ai•8m ago•8 comments

The Cloud Is the Cache

https://shortdiv.com/posts/the-cloud-is-the-cache/
1•speckx•8m ago•0 comments

Kiss-O'-Death (KOD) Responses

https://support.ntp.org/Dev/KoDResponses
1•jruohonen•8m ago•0 comments

Notepad++ Supply Chain Attack Full Story

https://hackingpassion.com/notepad-plus-plus-supply-chain-attack/
1•wglass•9m ago•0 comments

Floating AI microphone types your voice it into any application

https://www.procoders.co/voice-anywhere
1•iswiftdev•9m ago•1 comments

Model is 6'2" wearing size Medium

https://pilk.website/2/model-is-6-2-wearing-size-medium
1•npilk•12m ago•0 comments

Anthropic's plan to scan and dispose of books

https://www.washingtonpost.com/technology/2026/01/27/anthropic-ai-scan-destroy-books
1•ownlife•12m ago•0 comments

eScan Antivirus Delivers Malware in Supply Chain Attack

https://www.securityweek.com/escan-antivirus-delivers-malware-in-supply-chain-attack/
1•Bender•12m ago•0 comments

Ivanti patches two 9.8 bugs in Endpoint Manager Mobile

https://www.scworld.com/news/ivanti-patches-two-9-8-bugs-in-endpoint-manager-mobile
1•Bender•14m ago•0 comments

AI agents solve 9 of 10 web security CTF challenges in recent study

https://www.scworld.com/news/ai-agents-solve-9-of-10-web-security-ctf-challenges-in-recent-study
1•Bender•15m ago•0 comments

Ventricular Arrhythmia and Exercise in Veteran Male Endurance Athletes

https://academic.oup.com/eurjpc/advance-article/doi/10.1093/eurjpc/zwag021/8417747?login=false
1•PaulHoule•15m ago•0 comments

Intersection Designs That Prioritize Pedestrians (2014)

https://nextcity.org/urbanist-news/walkable-cities-intersection-design-for-pedestrians
1•taubek•15m ago•0 comments

Show HN: Osprey 1.0, open-source rules engine for online safety

https://roost.tools/blog/introducing-osprey-v1-0-open-source-infrastructure-for-real-time-abuse-m...
1•shensations•17m ago•0 comments

Flat Assembler

https://publish.obsidian.md/xybre/permalink/31251e85-3e8d-4ddd-b1d9-4ec76eae00b5
1•vitalnodo•18m ago•0 comments

What Is Predictive Analytics?

https://www.scoopanalytics.com/blog/what-is-predictive-analytics
1•taylormorgansco•19m ago•1 comments

Show HN: Bankster – "money as data" toolkit for Clojure (registry, bigdec, EDN)

https://github.com/randomseed-io/bankster
1•siefca•19m ago•1 comments

Show HN: ClawGuardian – Security Plugin for OpenClaw

https://github.com/superglue-ai/clawguardian
1•sfaist•19m ago•0 comments

Show HN: Parano.ai – Continuous Competitor Monitoring

https://parano.ai
1•mlukaszczyk•23m ago•0 comments

Interest in a "Who's looking for funding?" post

3•gushogg-blake•24m ago•0 comments