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

Neumann: I built a unified database including a Semantic Cache and AI Vault

https://github.com/Shadylukin/Neumann
1•Shadylukin•4m ago•1 comments

Hello, here is the marketplace for Moltbot (Clawdbot)

https://molt-market.com/
1•yichen-gong•6m ago•1 comments

St. Peter police chief got federal agents to release resident, sources say

https://www.mprnews.org/story/2026/01/30/st-peter-police-chief-intervenes-prevents-federal-agents...
1•starkparker•11m ago•0 comments

Unable to Stop Al, SAG-AFTRA Mulls a Studio Tax on Digital Performers

https://variety.com/2026/film/news/sag-aftra-ai-tilly-norwood-tax-digital-performers-1236644931/
1•voxadam•12m ago•1 comments

Ouroboros: An AI vibe-coding game

https://github.com/michaelwhitford/ouroboros
1•dulakian•15m ago•1 comments

Cleverbot (2008)

https://www.cleverbot.com/
2•1bpp•22m ago•2 comments

I use a Huawei modem; I cannot access this article. On my Singtel phone, I can

https://twitter.com/MikeFritzell/status/2017784723389759685
3•cwwc•23m ago•0 comments

Workers are 'friction-maxxing' to resist AI

https://www.ft.com/content/fd5e65df-83c7-42f3-9658-377c99df42d1
3•cebert•29m ago•1 comments

Show HN: SBOMHub – Open-source SBoM dashboard with CVE tracking

https://github.com/youichi-uda/sbomhub/blob/main/README_en.md
1•y1uda•29m ago•0 comments

Show HN: Skill.Fish – NPM-style package manager for AI agent skills

https://github.com/knoxgraeme/skillfish
1•knoxgraeme•32m ago•0 comments

Free Corpus Tracker – Budget, stocks, gold, mutual funds in one place

https://icorpus.vercel.app
1•mathan_karthik•34m ago•1 comments

Sudo

https://www.sudo.ws/
1•vinhnx•43m ago•0 comments

Moltbook Smcp Plugin

https://github.com/sanctumos/smcp-moltbook
1•actuallyrizzn•46m ago•1 comments

I replaced a $120/year micro-SaaS in 20 minutes with LLM-generated code

https://blog.pragmaticengineer.com/i-replaced-a-120-year-micro-saas-in-20-minutes-with-llm-genera...
4•vinhnx•49m ago•2 comments

Chased Through Amsterdam, Robbed of $1M, yet Still Building: Matthew's Plans

https://altcoindesk.com/perspectives/interviews/after-a-1m-scam-in-amsterdam-matthew-jones-moves-...
1•CapricornQueen•56m ago•0 comments

The Art of Unix Usability

http://www.catb.org/~esr/writings/taouu/html/index.html
2•js216•57m ago•0 comments

Oakland Firestorm of 1991

https://en.wikipedia.org/wiki/Oakland_firestorm_of_1991
1•petethomas•1h ago•0 comments

What If Trump Discovers That Unpaid UK (and French) Debt from WWI?

https://podcasts.apple.com/us/podcast/ep-155-what-if-trump-discovers-that-unpaid-uk-and/id1528208...
6•KnuthIsGod•1h ago•0 comments

Stop panicking about AI. Start preparing

https://www.economist.com/leaders/2026/01/29/stop-panicking-about-ai-start-preparing
2•petethomas•1h ago•0 comments

Network Applications of Bloom Filters: A Survey [pdf]

https://www.eecs.harvard.edu/~michaelm/postscripts/im2005b.pdf
1•mfiguiere•1h ago•1 comments

Show HN: Kindler: A declarative, Lua-based, build system

https://setsunasoftware.com/kindler/
1•ThatGuyRaion•1h ago•0 comments

The Context Gravity Well

https://mapwriting.substack.com/p/the-context-gravity-well
1•doitLP•1h ago•0 comments

LinkedIn, Everyone's an AI Detective Now

https://www.bloomberg.com/news/articles/2026-01-30/chatgpt-written-linkedin-posts-have-users-anal...
1•petethomas•1h ago•1 comments

Tautologism Language

https://zenodo.org/records/18446476
2•KaoruAK•1h ago•0 comments

Show HN: Licobox – Container runtime with Docker Engine on a macOS

https://licobox.dev
1•yunusefendi52•1h ago•0 comments

Show HN: Using OpenClaw chat to manage tasks with an Eisenhower Matrix

https://4to.do/integrations/openclaw
1•haoya•1h ago•0 comments

Why Do Lawyers Want to Abolish ICE? [video]

https://www.youtube.com/watch?v=zkgNnbTrsgw
2•zdw•1h ago•0 comments

Chrome Extension lets you watch YouTube while browsing the web

https://chromewebstore.google.com/detail/watch-youtube-sidebar/nfgnokdbenjkocebgekljbdolmfjbnhg
2•eeko_systems•1h ago•0 comments

RPyC – Transparent, symmetric distributed computing

https://rpyc.readthedocs.io/en/latest/
2•benswerd•1h ago•0 comments

Start (Vibe) Coding Fast

https://chadnauseam.com/coding/tips/start-vibe-coding-fast
2•ChadNauseam•1h ago•2 comments