Y Hacker News Books
Buy on Amazon4.7 out of 5, 1,228 ratings on Amazon

#132 of 2,629 all-time

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

InclinedPlane
Studying refactoring gives devs a much stronger ability to talk about, study, understand, reason about, and modify code.

on HN, 2011

InclinedPlane
Refactoring concentrates on changing existing code vs. greenfield development, which tends to be far more useful in practice.

on HN, 2011

cratermoon
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.

on HN, 2021

cratermoon
For showing me that programming involves revising and improving far more than opening up an editor to a new file in an empty repo.

on HN, 2021

TeeDub
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.

on HN, 2012

gruseom
Martin Fowler's Refactoring is pretty good on the technical side of things.

on HN, 2010

dpflan
Refactoring Improve the design of the existing codebase (Making changes safely without breaking the code)

on HN, 2023

ramgp
Refactoring: Improving the Design of Existing Code by Martin Fowler

on HN, 2013

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