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

Europe Worries About Another Trump Blowup, This One on Tech

https://www.nytimes.com/2026/02/19/world/europe/europe-united-states-trump-digital-services-act.html
1•Doches•2m ago•1 comments

Show HN: Marketplace for Requesting Intelligence via Bounties

https://getintelligence.space
1•Mapamapa•2m ago•0 comments

Show HN: OctoGames – Free Browser Games Hub

https://octogames.io/http://localhost:45678/
1•yevhenms•4m ago•0 comments

Pg-here: Run a local PostgreSQL instance in your project folder with one command

https://github.com/mayfer/pg-here
1•todsacerdoti•4m ago•0 comments

First Five Days with Gremlin My OpenClaw Assistant

https://peebs.org/gremlin-improvements/
1•nemesisj•5m ago•1 comments

I made ChatGPT and Google tell I'm a competitive hot-dog-eating world champion

https://bsky.app/profile/thomasgermain.bsky.social/post/3mf5jbn5lqk2k
3•doener•8m ago•0 comments

Show HN: A physically-based GPU ray tracer written in Julia

https://makie.org/website/blogposts/raytracing/
1•simondanisch•9m ago•0 comments

Experimenting with sponsorship for my blog and newsletter

https://simonwillison.net/2026/Feb/19/sponsorship/
1•Cyphase•10m ago•0 comments

Taming the Beast: Comparing Jsonnet, Dhall, Cue

https://pv.wtf/posts/taming-the-beast
1•ahamez•10m ago•0 comments

New inference engine faster than vLLM, SGLang, TRT-LLM

https://layerscale.ai/
1•logotype•15m ago•0 comments

Show HN: Fostrom, an IoT Cloud Platform built for developers

https://fostrom.io/
1•arjunbajaj•16m ago•0 comments

Atlassian Halts Hiring as AI Pressure Mounts

https://theaussiecorporate.com/blogs/pickandscrollnews/atlassian-halts-hiring-as-ai-pressure-mounts
1•shivam310•16m ago•0 comments

I Use AI in Sublime Text

https://ohdoylerules.com/tricks/how-i-use-ai-in-sublime-text/
1•trueduke•18m ago•0 comments

Show HN: Shipfast.so – Next.js boilerplate with auth, payments, email, database

https://www.shipfast.so/
2•mahdijafaridev•23m ago•0 comments

Show HN: Local heatmap visualization for large codebases

https://codeheat.space
1•forteaux•28m ago•0 comments

Lying

https://en.wikipedia.org/wiki/Lying_(Harris_book)
2•chistev•28m ago•1 comments

When AI content isn't slop

https://grahamdumpleton.me/posts/2026/02/when-ai-content-isnt-slop/
2•lumpa•31m ago•0 comments

Show HN: I ported PicoClaw to a 32-bit Windows laptop (vibe-coded)

https://github.com/venkatram-s/picoclaw/releases/tag/latest
1•venkatram-s•31m ago•0 comments

Show HN

https://lighthouseapp.io/tools/blogroll-editor
1•domysee•32m ago•0 comments

Illusory Truth Effect

https://en.wikipedia.org/wiki/Illusory_truth_effect
1•chistev•37m ago•0 comments

Show HN: Global macOS shortcut that rewrites selected text anywhere with AI

https://github.com/tsortwehttam/spackle
1•matthewtoast•37m ago•1 comments

Anthropic is clashing with The Pentagon over AI use. Here's what each side wants

https://www.cnbc.com/2026/02/18/anthropic-pentagon-ai-defense-war-surveillance.html
2•xyzal•37m ago•0 comments

Ask HN: Onboarding UX for long-running agent workflows

1•kevinkatzke•38m ago•0 comments

Running local LLMs and VLMs on the Arduino UNO Q with yzma

https://projecthub.arduino.cc/marc-edgeimpulse/running-local-llms-and-vlms-on-the-arduino-uno-q-w...
1•deadprogram•43m ago•0 comments

Quint LLM Kit for writing and using formal specifications

https://github.com/informalsystems/quint-llm-kit
3•bugarela•43m ago•0 comments

Codeberg as an OIDC Provider for Tailscale (2023)

https://kennyqin.com/posts/codeberg-as-an-oidc-provider-for-tailscale/
2•arm•46m ago•0 comments

They're Made Out of Meat (1991)

https://www.mit.edu/people/dpolicar/writing/prose/text/thinkingMeat.html
1•tornikeo•46m ago•0 comments

The digital death of collecting (2021)

https://kylechayka.substack.com/p/essay-the-digital-death-of-collecting
1•robtherobber•48m ago•0 comments

Socket brings supply chain security to skills.sh

https://socket.dev/blog/socket-brings-supply-chain-security-to-skills
1•ryoidong•49m ago•0 comments

DitchingDiscord Wiki

https://wiki.alopex.li/DitchingDiscord
1•keyle•50m ago•0 comments