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
And on Amazon
Absolute must have book for every developer’s library!
Fantastic book and one that should be in every developers personal library. The depth of knowledge and technical precision the author has in regards to refactoring is immense. This book is not a quick read but should be read in its entirety to really take in all that refactoring has to offer. Refactoring has now become part of my everyday programming and development process. There is only one thing I would change about the book and that is for the author to add the completed refactored code for some of the more complex methodologies to the end of each refactoring. …
Joshua Oglesbee · verified purchase · 5/5
If you have the right 'why', you can bear almost any 'how'
Code is written by humans, executed by machines. Live code is also read by (other) humans for about 10x more than the time it took to write it. This is where "refactoring" comes to play. It is sort of making continuous improvement to code so it is more readable. It is cleaning up cobwebs from the corners. One of the most popular CS papers ever ("Hints for Computer System Design", 1983) suggests 3-step process about writing code - first, make it work; second, make it right; finally, make it fast". This book, a succinct second edition of a very popular first, is an excellent "show and tell" for the second part. …
Nilendu Misra · verified purchase · 4/5
Very useful even for experienced programmers and well designed
This is a great book! I'm a Java dev with 6yoe and I still learn from this book. There are some things I knew, some I forgotten or thought about but didn't know a proper name of and some I have never thought of. The language used is Javascript but it's syntax shouldn't be hard to follow. Also, the book quality is high and there are lots of pretty diagrams if it matters for you (it certainly does for me).
Vitaly Chura · verified purchase · 5/5
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
