Submission timeline
2007–2026One 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 orderMy problem with "1/0 = 0" is that it's essentially masking what's almost always a bug in your program. If you have a program that's performing divide-by-zeroes, that's almost surely something you did not intend for. It's a corner case that you failed to anticipate and plan for. And because you didn't plan for it, whatever result you get for 1/0 is almost surely a result that you wouldn't want to have returned to the user. When encountering such unanticipated…
I debated this with my boss at my first programming job (this was 20+ years ago). He thought 1/0 should be 0 rather than an error because "that's what people expect". My argument was from mathematical definitions (the argument which this blog post picks apart). In retrospect, I see his point better - practical use trumps theory in most language design decisions. I haven't changed my mind but the reason has shifted more toward because "it's what a larger set…
In my language, division isn't closed. The type of x/y is maybe<double> because when you do shenanigans of defining division as a different operator than multiplying by the multiplicative inverse, your code sucks.
What is in your opinion the best way to return from a division by zero * Infinity * Throw Error * 0 * Something else I wanted to submit this as an ask hn, and share the url that suggest the 0 answer, but I sort of failed
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
- 2
- Total points
- 795
- Total comments
- 812
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2018-08-10 | 1/0 = 0First breakout · Best thread | ingve | 650 | 570 |
| 2024-04-30 | What is the best answer to divide by 0 | systems | 2 | 3 |
| 2024-11-17 | 1 / 0 = 0 (2018) | Aaronmacaron | 8 | 8 |
| 2024-12-01 | 1/0 = 0 (2018)Latest 20+ point return | revskill | 135 | 231 |
