frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Who is hiring? (February 2026)

125•whoishiring•2h ago•146 comments

Ask HN: Who wants to be hired? (February 2026)

33•whoishiring•2h ago•74 comments

Kernighan on Programming

76•chrisjj•2h ago•17 comments

Ask HN: Has anybody moved their local community off of Facebook groups?

14•madsohm•9h ago•8 comments

Google Cloud suspended my account for 2 years, only automated replies

153•andylizf•1d ago•86 comments

Why do people still talk about AGI?

32•cermicelli•15h ago•49 comments

Ask HN: Do you still use physical calculators?

32•speedylight•2d ago•87 comments

Ask HN: What serious task have you accomplished with Moltbot / OpenClaw?

6•lukol•17h ago•4 comments

Ask HN: Junior getting lost

49•TheRegularOne•3d ago•36 comments

Ask HN: Any Successful Co-Ops of Software Engineers

13•rubyn00bie•1d ago•10 comments

Task engine VM – for tasks with executable instructions (progress update)

3•tracyspacy•1d ago•3 comments

Ask HN: Any real OpenClaw (Clawd Bot/Molt Bot) users? What's your experience?

108•cvhc•2d ago•169 comments

Ask HN: Do you also "hoard" notes/links but struggle to turn them into actions?

230•item007•3d ago•211 comments

Ask HN: How do you handle auth when AI dev agents spin up short-lived apps?

2•NBenkovich•1d ago•7 comments

AI has failed to replace a single software application or feature

20•cadabrabra•3d ago•22 comments

A simple HTTPS, HTTP/3, SSL and security headers checker I built with AI

3•dragonman•1d ago•1 comments

Ask HN: How do you reset an AppleID?

13•OhMeadhbh•3d ago•26 comments

Waypoint 1.1, a local-first world model for interactive simulation

13•lcastricato•3d ago•0 comments

G Lang – A lightweight interpreter written in D (2.4MB)

2•pouyathe•3d ago•1 comments

Ask HN: How do you market a side project?

11•ruairidhwm•3d ago•12 comments

Ask HN: The Next Big OS Leap

4•rafaelmdec•21h ago•26 comments

Ask HN: What's your biggest LLM cost multiplier?

7•teilom•2d ago•5 comments

The preposterous notion of AI automating "repetitive" work

11•cadabrabra•3d ago•10 comments

Ask HN: What's the Point Anymore?

67•fnoef•6d ago•82 comments

Ask HN: What recent UX changes make no sense to you?

34•superasn•5d ago•36 comments

Ask HN: How do you force yourself to take breaks while coding?

6•glidea•3d ago•26 comments

Ask HN: How far has "vibe coding" come?

13•pigon1002•4d ago•27 comments

Ask HN: Should a software engineer have research exposure?

4•c_daeda•2d ago•1 comments

How much recurring income do you generate in 2026 and from what?

12•djshah•5d ago•7 comments

Ask HN: Is archive.is currently broken for WSJ links?

8•bigwheels•4d ago•3 comments
Open in hackernews

Kernighan on Programming

76•chrisjj•2h ago
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it"

This has been a timely PSA.

Comments

awkward•1h ago
Kernighan's Lever - https://linusakesson.net/programming/kernighans-lever/index....

This article is perennially posted here and is probably the best breakdown of this quote.

agentultra•1h ago
So is reviewing and verifying code. Maybe not twice as "hard" if you're skilled in such things. But most programmers I've worked with can't be bothered to write tests let alone verify correctness by other means (good tests, property tests, types, model checking, etc).

It's one thing to point out small trivialities like initialization and life time issues in a small piece of code. But it's quite another to prove they don't exist in a large code base.

Kernigan is a good source of quotes and thinking on programming.

eweise•1h ago
I haven't worked in a codebase in 20 years that didn't have some sort of tests.
simonw•1h ago
Out of interest, what language ecosystems do you tend to work in?

My guess is that some languages - like Go - have a more robust testing culture than other languages like PHP.

jama211•37m ago
Not who you asked but I think it comes down to risk/reward. The consequences of some user finding a big in most websites is low, compared to the risk of an astronaut finding a bug the hard way whilst attempting re-entry.

There is genuinely a reasonable and rational argument to “testing requires more effort than fixing the issues as users find them” if the consequences are low. See video games being notorious for this.

So, industry is more important than language I’d say.

simonw•12m ago
I don't see testing as a quality thing any more, I see it as a developer productivity thing.

If my project has tests I can work so much faster on it, because I can confidently add tests and refactor and know that I didn't break existing functionality.

You gotta pay that initial cost to to get the framework in place though. That takes early discipline.

hackthemack•1h ago
I am fascinated by the prevalence of wanting "tests" from hacker news comments. Most of the code I have worked on in the past 20 years did not have tests. Most of it was shopping carts, custom data transformation code, orchestrating servers, plugin code functionality to change some aspect of a website.

Now, I have had to do some salesforce apex coding and the framework requires tests. So I write up some dummy data of a user and a lead and pass it through the code, but it feels of limited value, almost like just additional ceremony. Most of the bugs I see are from a misconception of different users about what a flag means. I can not think of a time a test caught something.

The organization is huge and people do not go and run all the code every time some other area of the system is changed. Maybe they should? But I doubt that would ever happen given the politics of the organization.

So I am curious, what are the kinds of tests do people write in other areas of the industry?

bluGill•57m ago
The value of tests is when the fail they show you of something you broke that you didn't realize. 80% (likely more, but I don't know how to measure) of the tests I write could safely be thrown away because they fail again - but I don't know which tests will fail and thus inform me that I broke things.

The system I'm working on has been in production for 12 years - we have added a lot of new features over those years. Many of those needed us to hook into existing code, tests help us know that we didn't break something that used to work.

Maybe that helps answer the question of why they are important to me. They might not be to your problems.

tjr•49m ago
what are the kinds of tests do people write in other areas of the industry?

Aerospace here. Roughly this would be typical:

- comprehensive requirements on the software behavior, with tests to verify those requirements. Tests are automated as much as possible (e.g., scripts rather than manual testing)

- tests are generally run first in a test suite in a completely virtual software environment

- structural coverage analysis (depending on level of criticality) to show that all code in the subsystem was executed by the testing (or adequately explain why the testing can't hit that code)

- then once that passes, run the same tests in a hardware lab environment, testing the software as it runs on the the actual physical component that will be installed on the plane

- then test that actually on a plane, through a series of flight tests. (The flight testing would likely not be as entirely comprehensive as the previous steps)

A full round of testing is very time-consuming and expensive, and as much as possible should be caught and fixed in the virtual software tests before it even gets to the hardware lab, much less to the plane.

bityard•32m ago
I think the whole concept of testing confuses a lot of people. I know I was (and still sometimes am) confused about the various "best practices" and opinions around testing. As as well as how/what/when to test.

For my projects, I mainly want to Get Shit Done. So I write tests for the major functional areas of the business logic, mainly because I want to know ASAP when I accidentally break something important. When a bug is found that a test didn't catch, that's usually an indicator that I forgot a test, or need to beef up that area of functional testing.

I do not bother with TDD, or tests that would only catch cosmetic issues, and I avoid writing tests that only actually test some major dependency (like an ORM).

If the organization you are in does not value testing, you are probably not going to change their mind. But if you have the freedom to write worthwhile tests for your contributions to the code, doing so will probably make you a better developer.

PinkSheep•21m ago
Follow-up questions: Do you test manually? Why? Do you debug manually? Why?

You wanted examples: https://github.com/openjdk/jdk/tree/master/test/jdk/java/uti...

flipped•1h ago
In the age of LLMs, debugging is going to be the large part of time spent.
hackyhacky•40m ago
> In the age of LLMs, debugging is going to be the large part of time spent.

That seems a premature conclusion. LLMs are quite good as debugging and much faster than people.

akiselev•1h ago
The real question is whether “debugging” the LLM is going to be as effective as debugging the code.

IME it pays dividends but it can be really painful. I’ve run into a situation multiple times where I’m using Claude Code to write something, then a week later while working it’ll come up with something like “Oh wait! Half the binaries are in .Net and not Delphi, I can just decompile them with ilspy”, effectively showing the way to a better rewrite that works better with fewer bugs that gets done in a few hours because I’ve got more experience from the v1. Either way it’s tens of thousands of lines of code that I could never have completed myself in that amount of time (which, given problems of motivation, means “at all”).

ilc•40m ago
LLMs are where you need the most tests.

You want them writing tests especially in critical sections, I'll push to 100% coverage. (Not all code goes there, but thing that MUST work or everything crumbles. Yeah I do it.)

There was one time I was doing the classic: Pull a bug find 2 more thing. And I just told the LLM. "100% test coverage on the thing giving me problems." it found 4 bugs, fixed them, and that functionality has been rock solid since.

100% coverage is not a normal tool. But when you need it. Man does it help.

jama211•34m ago
Reading this article seems outdated and therefore quaint in some areas now, the “we’ve all felt that moment of staring at a small bit of simple code that can’t possibly be failing and yet it does” - I so rarely experience this anymore as I’d have an LLM take a look and they tend to find these sort of “stupid” bugs very quickly. But my earlier days were full of these issues so it’s almost nostalgic for me now. Bugs nowadays are far more insidious when they crop up.
alecbz•27m ago
Trying to get LLMs to understand bugs that I myself am stuck on has had an approximately 0% success rate for me.

They're energetic "interns" that can churn out a lot of stuff fast but seem to struggle a lot with critical thinking.