Refactoring
Martin Fowler
37 people recommended it in 21 threads, 2010–2025.
2 commenters pushed back on it — worth reading the threads.
What people on Hacker News said
Studying refactoring gives devs a much stronger ability to talk about, study, understand, reason about, and modify code.
Refactoring concentrates on changing existing code vs. greenfield development, which tends to be far more useful in practice.
For helping realize that in all the books telling me how to write good code, explaining language constructs, and working as a software developer, none of them ever made it clear to me that programmers spend less than half their time writing new code from scratch.
For showing me that programming involves revising and improving far more than opening up an editor to a new file in an empty repo.
The book is similar to Fowler's Refactoring in that it provides some core thought processes / ideology and then a long list of heuristics and techniques for revising/updating legacy code.
Martin Fowler's Refactoring is pretty good on the technical side of things.
Refactoring Improve the design of the existing codebase (Making changes safely without breaking the code)
Refactoring: Improving the Design of Existing Code by Martin Fowler
Where it comes up
- What is the single most influential book every programmer should read? 2011 · 5 recommendations
- Ask HN: What books had the greatest effect on how you structure your code? 2017 · 4 recommendations
- Ask HN: What language-agnostic programming books should I read? 2017 · 4 recommendations
- Ask HN: What's the best programming book you've read recently? 2014 · 3 recommendations
- Ask HN: What's the best book you've read regarding software development? 2025 · 2 recommendations
- Ask HN: Technical Summer Reading List 2021 · 2 recommendations
- Ask HN: What are the most fundamental books on computer science? 2019 · 2 recommendations
- What Compsci textbooks don't tell you: Real world code sucks 2012 · 2 recommendations
- Ask HN: Top 10 Timeless Software Books That ChangedLife as Software Engineer? 2023 · 1 recommendation
- Ask HN: Do you recall any book or course that made a topic finally click? 2022 · 1 recommendation
- Ask HN: What is the best programming book you've read? 2021 · 1 recommendation
- Ask HN: What, in your opinion, are the greatest and most useful textbooks? 2020 · 1 recommendation
- Ask HN: What are some books where the reader learns by building projects? 2020 · 1 recommendation
- Ask HN: Books you plan to read in 2020? 2019 · 1 recommendation
- Ask HN: What is the best book you read on 2017? 2017 · 1 recommendation
- Programming books you might want to consider reading 2016 · 1 recommendation
- Top Books on Amazon Based on Links in Hacker News Comments 2016 · 1 recommendation
- Ask HN: Which book are you reading these days? 2015 · 1 recommendation
- Ask HN: What book changed your life in 2013? 2013 · 1 recommendation
- What is the single most influential book every programmer should read? 2011 · 1 recommendation
