frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Naming Your Unit Tests: It Should vs. Given/When/Then

https://markus.oberlehner.net/blog/naming-your-unit-tests-it-should-vs-given-when-then
1•Alupis•1m ago•0 comments

The science of why your body resists weight loss

https://www.nationalgeographic.com/health/article/why-most-people-regain-weight
1•paulpauper•1m ago•0 comments

The lucrative economics of expert witnesses

https://thehustle.co/the-lucrative-economics-of-expert-witnesses
2•paulpauper•3m ago•0 comments

Complete spatial safety for C and C++ using CHERI capabilities

https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-949.html
1•fanf2•3m ago•0 comments

Multilingualism and Extending Healthspan

https://erictopol.substack.com/p/multilingualism-and-extending-healthspan
1•simonebrunozzi•6m ago•1 comments

TwisterJS – Tiny Modules for Indie Game Developers

https://twisterjs.com/
1•heroku•8m ago•0 comments

How We Found Out About COINTELPRO

https://monthlyreview.org/articles/how-we-found-out-about-cointelpro/
2•bryanrasmussen•9m ago•0 comments

How Pfizer ended up passing on my GLP-1 work back in the early '90s

https://www.statnews.com/2024/09/09/glp-1-history-pfizer-john-baxter-jeffrey-flier-calbio-metabio/
3•rajlego•9m ago•0 comments

Contact the ISS

https://www.ariss.org/contact-the-iss.html
1•logikblok•10m ago•0 comments

JavaScript creator warns against "rushed web UX over native" for Windows 11

https://www.windowslatest.com/2025/12/27/javascript-creator-warns-against-rushed-web-ux-over-nati...
2•thunderbong•16m ago•0 comments

Show HN: HookVerify – Webhook delivery visibility for production systems

https://hookverify.com
1•phntmdz•17m ago•0 comments

CVE-2025-68260: rust_binder: fix race condition on death_list

https://lore.kernel.org/linux-cve-announce/2025121614-CVE-2025-68260-558d@gregkh/T/#u
1•Khaine•21m ago•0 comments

In 1995, a Netscape employee wrote a hack in 10 days that now runs the Internet

https://arstechnica.com/gadgets/2025/12/in-1995-a-netscape-employee-wrote-a-hack-in-10-days-that-...
3•taubek•22m ago•0 comments

Show HN: Runtime data provenance for AI pipelines

https://github.com/clay-good/origin
1•hireclay•23m ago•0 comments

A complete implementation of bash in TypeScript designed to be used by AI agents

https://github.com/vercel-labs/just-bash
2•tilt•28m ago•0 comments

Say No to Palantir in the NHS

https://notopalantir.goodlawproject.org/email-to-target/stop-palantir-in-the-nhs/
6•_____k•29m ago•0 comments

Show HN: LLM-powered data extraction from messy spreadsheets

https://github.com/mehdigmira/tablereader
1•mehdig10•30m ago•0 comments

VS Code Local Extensions

https://hubelbauer.net/vscode-local-extensions/
3•tomashubelbauer•30m ago•0 comments

Richard Stallman at the First Hackers Conference in 1984 [video]

https://www.youtube.com/watch?v=Hf2pfzzWPYE
3•schmuckonwheels•30m ago•0 comments

Show HN: 3D Factorization Diagrams

https://suvakov.github.io/vibes/3DFactorizationDiagrams/index.html
1•msuvakov•30m ago•0 comments

Show HN: MCP server for vibration-based predictive maintenance

https://github.com/LGDiMaggio/predictive-maintenance-mcp
1•lgdimaggio•31m ago•1 comments

How to Deconstruct Almost Anything My Postmodern Adventure

https://www.fudco.com/chip/deconstr.html
1•_____k•32m ago•0 comments

Ask HN: I'm bored, what should I build

2•SpyCoder77•34m ago•1 comments

Port of Statistical Rethinking (2nd edition) code to Julia

https://shmuma.github.io/rethinking-2ed-julia/
2•samuel2•34m ago•0 comments

Expense splitter – an MCP server for splitting group expenses

https://github.com/vnaveen-mh/expense-splitter
1•vnaveen9296•36m ago•0 comments

An Ounce of Silver Is Now Worth More Than a Barrel of Oil

https://www.wsj.com/finance/commodities-futures/an-ounce-of-silver-is-now-worth-more-than-a-barre...
4•bookofjoe•38m ago•3 comments

Legal sports betting linked to sharp increases in violent crime

https://news.rice.edu/news/2025/legal-sports-betting-linked-sharp-increases-violent-crime-study-f...
9•geox•40m ago•0 comments

Goodbye SASS

https://www.redblobgames.com/blog/2025-12-27-goodbye-sass/
2•ingve•43m ago•0 comments

White House pushes to dismantle leading climate and weather research center

https://www.pbs.org/newshour/show/white-house-pushes-to-dismantle-leading-climate-and-weather-res...
62•Teever•44m ago•7 comments

Show HN: Gcommit – clustering code changes semantically

https://github.com/yp583/homebrew-custom-git
1•yp583•45m ago•0 comments
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 ...