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 orderI’ve usually heard this phenomenon called “incidental duplication,” and it’s something I find myself teaching junior engineers about quite often. There are a lot of situations where 3-5 lines of many methods follow basically the same pattern, and it can be aggravating to look at. “Don’t repeat yourself!” Right? So you try to extract that boilerplate into a method, and it’s fine until the very next change. Then you need to start passing options and configuration into your helper method…
Code duplication sometimes is a good thing but it doesn't prove that clean code is a bad thing. I think you overcommitted a bit on the refactor, if you had replaced those "10 repetitive lines of math" with a function it would have been cleaner. Let's be crystal clear about it, your teammate did a terrible job not creating a function for those 10 repetitive lines. I would be rejecting this PR but never rewriting it. Rewriting a PR is…
"Firstly, I didn’t talk to the person who wrote it. I rewrote the code and checked it in without their input. Even if it was an improvement (which I don’t believe anymore), this is a terrible way to go about it." While undeniably true, this feels completely orthogonal to the question of clean code. You could ruffle someone's feathers in the exact same way by taking code into the opposite direction. "Goodbye, Clean Code [...] Don’t be a clean code…
I think the original refactoring was right and the the author's position today is wrong.
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
- Total points
- 2332
- Total comments
- 1118
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 |
|---|---|---|---|---|
| 2020-01-11 | Goodbye, Clean CodeFirst breakout · Best thread | danabramov | 1678 | 575 |
| 2021-11-16 | Goodbye, Clean Code (2020) | DeathArrow | 266 | 212 |
| 2023-06-16 | Goodbye, Clean Code (2020) | Tomte | 1 | 0 |
| 2023-11-21 | Goodbye, Clean Code (2020) | ayoisaiah | 1 | 1 |
| 2023-12-08 | Goodbye, Clean CodeHall induction · Latest 20+ point return | kiyanwang | 386 | 330 |
