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 orderMost modern typed languages support encoding this information in the type of the variable, so that the compiler catches it, instead of in the variable name. Alexis King wrote a blog post about it that reached the front page a few days ago. https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...
If you want even better escaping safety: use different types for safe vs unsafe strings. You should not ever be crossing the streams. So make it a compile-time failure. And anywhere you truly do know better, you can just use a transformation func like `safe = iKnowWhatImDoingCompilerSTFU(unsafe)` And keep in mind that "escaping" is not a binary. Something that works in an HTML node's body may not work in an attribute or a request header or a URL. This is…
The modern solution to this problem is to use different types for semantically distinct categories, even if the in-memory representation is effectively identical. Noticing that you’re mixing HTML-safe and HTML-unsafe strings is exactly the sort of thing the compiler should be able to help you with.
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
- 210
- Total comments
- 147
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 |
|---|---|---|---|---|
| 2016-12-31 | Making Wrong Code Look Wrong (2005) | frostmatthew | 2 | 0 |
| 2017-04-20 | Making Wrong Code Look Wrong (2005) | oskarth | 4 | 0 |
| 2019-08-01 | Making Wrong Code Look Wrong (2005) | NieDzejkob | 2 | 2 |
| 2019-11-08 | Making Wrong Code Look Wrong (2005)First breakout · Best thread | aleyan | 112 | 46 |
| 2021-06-28 | Making Wrong Code Look Wrong (2005) | davikrr | 2 | 0 |
| 2022-08-31 | Making Wrong Code Look Wrong (2005)Latest 20+ point return | ingve | 87 | 99 |
| 2024-03-06 | Making Wrong Code Look Wrong (2005) | Tomte | 1 | 0 |
