
Refactoring to Patterns
Joshua Kerievsky · 2004
Programming and computer science › Software design and clean code
#1,954 most recommended
Hacker News
25
mentions by 22 people · top 14% of 15,732 books
Open Library
4.00★★★★★★★★★★
2 ratings · 16 want to read
Wikipedia
—
No article yet
About the book
Refactoring to Patterns is about improving existing code by moving it toward a design pattern, such as Strategy, Composite, or Template Method, through a sequence of small, behavior-preserving steps. It covers the refactorings that lead to specific patterns, along with the code smells that signal when a pattern would help. The scope is practical code restructuring in object-oriented software rather than pattern theory in the abstract. Patterns should be reached by refactoring toward them when a codebase needs them, not added speculatively during up-front design. The approach ties refactoring, test-driven development, and design patterns together, with tests serving as the safety net that makes each incremental change safe. The author presents pattern-directed refactorings as a repeatable method for evolving code toward a chosen design.
Written by Claude from what it knows of this book.
What Hacker News says 68% recommend · 0% critical
In the commenters’ own words
I don't agree with either of the claims in your comment. Although the GoF Abstract Factory pattern doesn't rule out having mutable state in your factory…
The examples shown in the post aren't wrong because they fail the grep test, they are wrong because they A) capture an uninteresting abstraction that is not…
What Open Library readers say 4.00 from 2 ratings
- 51
- 40
- 31
- 20
- 10
- 16 want to read
- 0 reading
- 2 have read
Only 2 ratings: treat the average as a hint.
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
- Ask HN: What was a book that changed your life?
- Ask HN: What's the best programming book you've read recently?
- Ask HN: Suggested software /design/ books?
- Ask HN: What software development book should I read over my winter break?
- Ask HN: A Book or Course to Learn Code Quality/Structure?
- Ask HN: Recommended Books/Articles on clean code design.
Details
- First published
- 2004
- ISBN
- 9780321213358
- Editions known
- 2 at Open Library
- Open Library
- OL8924975W
Read next: its neighbours on the mosaic
Domain-Driven DesignEric Evans · 2003 · recommended by 104 people · 4 people recommended both
Patterns of Enterprise Application ArchitectureMartin Fowler · 2002 · recommended by 34 people · 2 people recommended both
Working effectively with legacy codeMichael C. Feathers · 2004 · recommended by 186 people · 3 people recommended both
PrefactoringKenneth Pugh · 2005 · recommended by 1 person · similar by subject and what people say about it
Extreme programming explainedKent Beck · 1999 · recommended by 23 people · 2 people recommended both
UML distilledMartin Fowler · 1997 · recommended by 9 people · 2 people recommended both
Clean ArchitectureRobert C. Martin · 2017 · recommended by 47 people · 2 people recommended both
The Pragmatic ProgrammerAndy Hunt · 1999 · recommended by 353 people · 3 people recommended both
Clean CodeRobert C. Martin · 2008 · recommended by 298 people · 2 people recommended both
Designing Data-Intensive ApplicationsMartin Kleppmann · 2017 · recommended by 457 people · 2 people recommended both
Implementation patternsKent Beck · 2007 · recommended by 6 people · similar by subject and what people say about it
Software architecture in practiceLen Bass · 1998 · recommended by 2 people · similar by subject and what people say about it
Fundamentals of Software ArchitectureMark Richards · 2020 · recommended by 12 people · similar by subject and what people say about it
Smalltalk best practice patternsKent Beck · 1997 · recommended by 17 people · similar by subject and what people say about it
Object-oriented reengineering patternsSerge Demeyer · 2002 · recommended by 2 people · similar by subject and what people say about it
Lean Software DevelopmentMary Poppendieck · 2003 · recommended by 6 people · similar by subject and what people say about it
Practical Object-Oriented DesignSandi Metz · 2018 · recommended by 14 people · similar by subject and what people say about it
The art of agile developmentJames Shore · 2007 · recommended by 13 people · similar by subject and what people say about it
Head First Software ArchitectureRaju Gandhi · 2023 · recommended by 2 people · loosely similar by subject
Apprenticeship PatternsDave H. Hoover · 2009 · recommended by 16 people · similar by subject and what people say about it
Programming PearlsJon Bentley · 1999 · recommended by 158 people · 2 people recommended both
Design PatternsErich Gamma · 1994 · recommended by 95 people · similar by subject and what people say about it
Software CraftsmanshipPete McBreen · 2001 · recommended by 4 people · similar by subject and what people say about it
Head First design patternsEric Freeman · 2004 · recommended by 65 people · similar by subject and what people say about it