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

Comments

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

Wall Street eyes AI bubble as skepticism grows over trillion-dollar bets

https://www.latimes.com/business/story/2025-12-15/wall-street-eyes-ai-bubble-as-skepticism-grows-...
1•1vuio0pswjnm7•51s ago•0 comments

Where are you? A look at GeoIP

https://blog.apnic.net/2025/12/16/where-are-you-a-look-at-geoip/
1•HotGarbage•3m ago•0 comments

AI Didn't Steal Your Job–Invisible Labor Did

https://github.com/kase1111-hash/NatLangChain/blob/main/Docs/Invisible-Labor.md
1•Kase1111•4m ago•1 comments

Opus 1.6 Released

https://opus-codec.org/demo/opus-1.6/
1•ledoge•8m ago•0 comments

Show HN: EdgeVec v0.4.0 – Sub-millisecond vector search in WASM (Rust)

https://github.com/matte1782/edgevec
1•matteo1782•14m ago•0 comments

Distributed and Compositional Learning Data-structure: C#-NATS example

https://nats-io.github.io/nats.net/documentation/object-store/intro.html
1•northlondoner•14m ago•1 comments

Tested: Budget 5K Monitor for macOS

https://www.theverge.com/gadgets/842650/5k-monitor-ktc-h27p3-mac-os-review
1•scosman•15m ago•0 comments

A story of compio: an async runtime for Rust built with completion-based IO

https://compio.rs/docs/preface
1•0x1997•15m ago•0 comments

8M Users' AI Conversations Sold for Profit by "Privacy" Extensions

https://www.koi.ai/blog/urban-vpn-browser-extension-ai-conversations-data-collection
3•takira•16m ago•0 comments

CoreWeave's Staggering Fall from Market Grace Highlights AI Bubble Fears

https://www.wsj.com/tech/ai/coreweave-stock-market-ai-bubble-a3c8c321
1•zerosizedweasle•17m ago•1 comments

MultiCell: Geometric Learning in Multicellular Development

https://www.nature.com/articles/s41592-025-02983-x
1•ashishgupta2209•22m ago•0 comments

The Martingale betting system: the history and the fallacy (2023)

https://unabated.com/articles/martingale-system-fallacy
1•thomassmith65•22m ago•0 comments

Anthropic SDK integration for Microsoft/teams.ai

https://www.npmjs.com/package/@youdotcom-oss/teams-anthropic
1•EdwardIrby•24m ago•1 comments

Show HN: GitNotes – Local, context-aware notes built for GitHub

https://github.com/ParasKoundal/GitNotes
1•alohaTool•24m ago•0 comments

KuCoin Releases Post-Quantum Cryptography (PQC) Gateway Proof-of-Concept

https://www.kucoin.com/blog/en-kucoin-releases-post-quantum-cryptography-pqc-gateway-proof-of-con...
1•kevein•25m ago•0 comments

A Perfect Join Algorithm

https://remy.wang/blog/perfect-joins.html
1•remywang•26m ago•0 comments

No Real Nattys

https://bengoldhaber.substack.com/p/no-real-nattys
2•lindowe•32m ago•0 comments

I Built a Habit Tracker That Hates Streaks (Open Source)

https://github.com/lenghurst/atomichabits
1•olonghurst•32m ago•0 comments

Remove Black Color with Shaders

https://yuanchuan.dev/remove-black-color-with-shaders
2•spirit23•36m ago•0 comments

Ergonomic Office Chairs: A Smart Investment for Long-Term Health at Work

1•daugu•36m ago•0 comments

8 Rare Vintage Tech Products Worth Thousands That Might Be Hiding in Your Attic

https://www.bgr.com/2050118/rare-vintage-tech-worth-thousands-hiding-attic/
1•RickJWagner•41m ago•0 comments

Catching malicious package releases using a transparency log

https://blog.trailofbits.com/2025/12/12/catching-malicious-package-releases-using-a-transparency-...
2•abhisek•46m ago•0 comments

An installation-free AI agent demo that runs purely on WebAssembly

https://webui.ailoy.co/
2•jhlee525•49m ago•0 comments

Create AI Videos Effortlessly with SeedancePro

https://www.seedancepro.net
1•cy1414569•53m ago•1 comments

GPT for Vedas

https://www.vedhgpt.com/
1•xan92•1h ago•2 comments

Near-energy-free photonic Fourier transformation for convolution op acceleration

https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-7/issue-05/056007/Near-ener...
1•QueensGambit•1h ago•1 comments

Try CUGA in Hugging Face, the #1 Generalist Agent in the AppWorld Leaderboard

https://huggingface.co/blog/ibm-research/cuga-on-hugging-face
1•jlaredo•1h ago•0 comments

Open-source IEC nuclear fusion reactor: control, monitoring, and data logging

https://github.com/natesales/openreactor
1•dangtony98•1h ago•0 comments

Bastion – Comprehensive Security and Key Management for 1Password

https://github.com/JakeHertenstein/bastion
2•jakehertenstein•1h ago•1 comments

Get an Old Laptop

https://cyberaether.xyz/blog/get-an-old-laptop/
3•edent•1h ago•0 comments