frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Xfwl4 – The Roadmap for a Xfce Wayland Compositor

https://alexxcons.github.io/blogpost_15.html
34•pantalaimon•1h ago•6 comments

I made my own Git

https://tonystr.net/blog/git_immitation
135•TonyStr•3h ago•57 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
25•cmkr•30m ago•10 comments

Heathrow scraps liquid container limit

https://www.bbc.com/news/articles/c1evvx89559o
429•robotsliketea•3d ago•576 comments

Snow Simulation Toy

https://potch.me/2026/snow-simulation-toy.html
47•surprisetalk•1w ago•12 comments

Velox: A Port of Tauri to Swift by Miguel de Icaza

https://github.com/velox-apps/velox
88•wahnfrieden•1w ago•17 comments

A list of fun destinations for telnet

https://telnet.org/htm/places.htm
197•tokyobreakfast•11h ago•58 comments

TikTok users can't upload anti-ICE videos. The company blames tech issues

https://www.cnn.com/2026/01/26/tech/tiktok-ice-censorship-glitch-cec
122•kotaKat•46m ago•57 comments

Ask HN: Books to learn 6502 ASM and the Apple II

56•abkt•3h ago•34 comments

9 Mothers (YC X26, Defense Tech) Is Hiring

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•1h ago

Kimi Released Kimi K2.5, Open-Source Visual SOTA-Agentic Model

https://www.kimi.com/blog/kimi-k2-5.html
321•nekofneko•8h ago•121 comments

The age of Pump and Dump software

https://tautvilas.medium.com/software-pump-and-dump-c8a9a73d313b
15•brisky•25m ago•1 comments

We Do Not Support Opt-Out Forms (2025)

https://consciousdigital.org/why-we-do-not-support-opt-out-forms/
38•mefengl•4h ago•10 comments

The Universal Pattern Popping Up in Math, Physics and Biology (2013)

https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/
88•kerim-ca•4d ago•36 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
515•meetpateltech•1d ago•600 comments

ChatGPT Containers can now run bash, pip/npm install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
377•simonw•19h ago•274 comments

The hidden engineering of runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
355•crescit_eundo•6d ago•87 comments

The C-Shaped Hole in Package Management

https://nesbitt.io/2026/01/27/the-c-shaped-hole-in-package-management.html
18•tanganik•3h ago•13 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
297•dakshgupta•22h ago•203 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
354•01-_-•23h ago•281 comments

I let ChatGPT analyze a decade of my Apple Watch data, then I called my doctor

https://www.msn.com/en-us/news/technology/i-let-chatgpt-analyze-a-decade-of-my-apple-watch-data-t...
170•zdw•16h ago•158 comments

JuiceSSH – Give me my pro features back

https://nproject.io/blog/juicessh-give-me-back-my-pro-features/
364•jandeboevrie•20h ago•148 comments

Dithering – Part 2: The Ordered Dithering

https://visualrambling.space/dithering-part-2/
226•ChrisArchitect•19h ago•29 comments

Over 36,500 killed in Iran's deadliest massacre, documents reveal

https://www.iranintl.com/en/202601255198
621•mhb•1d ago•367 comments

RIP Low-Code 2014-2025

https://www.zackliscio.com/posts/rip-low-code-2014-2025/
254•zackliscio•22h ago•129 comments

Refinement Without Specification

https://buttondown.com/hillelwayne/archive/refinement-without-specification/
13•BerislavLopac•6d ago•0 comments

Russia using Interpol's wanted list to target critics abroad, leak reveals

https://www.bbc.com/news/articles/c20gg729y1yo
151•breve•7h ago•47 comments

New York Times games are hard: A computational perspective

https://arxiv.org/abs/2509.10846
48•PaulHoule•4d ago•15 comments

AI code and software craft

https://alexwennerberg.com/blog/2026-01-25-slop.html
210•alexwennerberg•20h ago•125 comments

Porting 100k lines from TypeScript to Rust using Claude Code in a month

https://blog.vjeux.com/2026/analysis/porting-100k-lines-from-typescript-to-rust-using-claude-code...
231•ibobev•1d ago•144 comments
Open in hackernews

Using tests as a debugging tool for logic errors

https://www.qodo.ai/blog/java-unit-testing-how-to-use-tests-as-a-debugging-tool-for-logic-errors/
38•simplesort•8mo ago

Comments

recroad•8mo ago
This article seems like a very long-winded and complicated way to say that we should write tests. Am I missing something here? Wouldn't most developers write tests when creating algorithms, let alone something relating to finance as tax calculations? Yes, you should reproduce a defect by writing a failing tests first.

Where I hoped/thought this piece would go was to expand on the idea of error-prone[1] and apply it to the runtime.

https://github.com/google/error-prone

simplesort•8mo ago
I thought it was interesting - not revolutionary but updated my thinking a bit.

Writing a failing test that reproduces a bug is something I learned pretty early on.

But I never consciously thought about and approached the test as a way to debug. I thought about it more of a TDD way - first write tests, then go off and debug/code until the test is green. Also practically, let's fill the gap in coverage and make sure this thing never happens again, especially if I had to deal with it on the weekend.

What was interesting to me about this was actively approaching the test as a way of debugging, designing it to give you useful information and using the test in conjunction with debugger

whynotmaybe•8mo ago
I'm happy for you that you learned something and sad for me because you made me feel old and stupid.

I tend to forget that people don't know stuff I learned decades ago and consider them as general knowledge.

Before TDD became what it was, we used to create specific files for specific bug cases, or even get the files from the users themselves.

JadeNB•8mo ago
> I tend to forget that people don't know stuff I learned decades ago and consider them as general knowledge.

While all of us who are lucky to be around long enough meet the problem of general knowledge changing under our feet, it's hard for me to imagine how saying this to someone can be a productive contribution to the conversation. What can it accomplish other than making someone feel worse for not knowing something that you consider general knowledge?

whynotmaybe•8mo ago
I don't think anyone should feel bad for not knowing something.

My "general" knowledge is built on my experience.

The first comment before OP answer's was kinda condescending about the article and I felt the same way when reading it but then op's comment made me realise I was in the wrong because I forgot that my "general" knowledge is not general at all.

OP had to defend why he posted it. I wanted to tell OP that it was a good idea to post it, not for the article content, but for my teaching moment.

Jtsummers•8mo ago
> What was interesting to me about this was actively approaching the test as a way of debugging, designing it to give you useful information and using the test in conjunction with debugger

I'm curious, if you're using TDD weren't you already doing this? A test that doesn't give you useful information is not a useful test.

hyperpape•8mo ago
I think the distinction is that if you write a test that reproduces the bug, that's a binary signal and doesn't by itself tell you anything about why the bug is happening.

In contrast, if you write tests that rule out particular causes of a bug you're incrementally narrowing down the potential causes of the bug. So each test gives you information that helps you solve the bug, without directly stepping through the code.

Unfortunately, I don't think the post is a great primer on the subject.

Jtsummers•8mo ago
> Unfortunately, I don't think the post is a great primer on the subject.

It isn't, nor is it intended to be. It's an advert:

>> While mastering unit tests as debugging tools takes practice, AI-powered solutions like Qodo can significantly accelerate this journey. Qodo’s contextual understanding of your Java codebase helps it automatically generate tests that target potential logic vulnerabilities.

gavmor•8mo ago
> then go off and debug/code until

Yes, this is a missed opportunity! Well said. I try to write tests in place of print statements or debuggers, using assertions like xray glasses. Fun times!

jeremyscanvic•8mo ago
This reminds me of a talk that Leslie Lamport (author of LaTeX & prominent figure in the field of distributed computing) gave recently [1]. I remember him arguing that the difficult part in writing code is not to determine what code to write to compute something, but to determine what this something is in the first place. "Logic errors" are really about valid algorithms that end up computing the wrong thing - they're gonna compile, they're gonna run, but they won't do what you want them to do.

One example he gives is computing the maximum element in a sequence of numbers. This is something trivial to implement but you need to decide what to do with the obvious edge case: empty sequences. One solution is to return some kind of error or exception, but another is to extend what we mean by the largest element in a sequence the way mathematicians typically do. Indeed, the maximum function can be extended for empty sequences by letting max([]) := -infinity, the same way empty sums are often defined as 0, and empty products as 1. The alleged benefit of following the second approach is that it should lead to simpler code/algorithms, but it also requires more upfront thinking.

[1] https://www.youtube.com/watch?v=tsSDvflzJbc

pkoird•8mo ago
Closely related are in-code assertions. I remember when I used to liberally use asserts inside a code (and you could disable them for production) to check pre-conditions, post-conditions, or any invariants. Nowadays, I don't think the pattern is recommended anymore, at least in certain popular languages.
esafak•8mo ago
Fail as early as you can, if you can't recover.
just6979•8mo ago
It's not recommended as much anymore because of unit tests. Instead of peppering the code with asserts, you build tests based on those assertions. You don't have to worry about turning it off in production because the tests are separate, and you also don't have to worry about manually triggering all the various asserts in a dev build, because the test runs are doing that for you even before a build is published.
pfdietz•8mo ago
How do you determine if your tests are good at finding logic errors?

Mutation testing. Introduce artificial logic errors and see if your tests find them.

Disappointed the article didn't go into this. You can even use mutation as part of a test generator, saving the (minimized) first test input that kills a mutant. You still need some way of determining what the right answer was (killing the mutant just involves seeing it does something different from the unmutated program.)

codr7•8mo ago
Something's seriously messed up with the font on that page for me.