HN Hall of Fame Weekly email

Null References: The Billion Dollar Mistake

www.infoq.com Audio, video & images Video Software engineering Class of 2020-01 Hall of Fame
Screenshot of www.infoq.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 13 calendar years, with breakout response in 3 of them.

submissions
16
submitters
16
observed span
2009–2023
peak thread · 150 comments
93 pts
latest 20+ return · 2023-02-28
53 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Out of all possible gotchas in programming languages I still find null pointers the easiest one to discover and fix. You directly see when and where it happens, and the fix is usally straightforward. Compared to that invalid pointers (stale references) are a lot more painful, since programs might continue to work for a while. Managed languages do at least prevent those. Multithreading issues are imho the biggest pain points, since they are introduced so easily and often go unnoticed…

Nah. The billion dollar mistake is actually C arrays decaying to pointers, enabling buffer overflows, the #1 cause of bugs and malware injection in shipped C programs. https://www.digitalmars.com/articles/C-biggest-mistake.html It's simple to fix this in C, too.

One of my absolute favorite things about Rust is that nulls can't be used to circumvent the type system. They must be explicitly accounted for via an option type in all cases. It's very hard to go back to a language that doesn't do this after getting used to it. I get so frustrated by constant null dereference errors when that entire category of error can be avoided.

I particularly appreciate that as a billion-dollar mistake, Javascript decided to make it twice (null and undefined).

jfengel·19-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
237

reference only — not used in Hall rules or ranking

Total comments
368

reference only — not used in Hall rules or ranking

Every submission