Refactoring to Patterns
by Joshua Kerievsky · Joshua Kerievsky
Joshua Kerievsky's book connecting refactoring with Gang of Four design patterns, showing through worked Java examples how to move code toward, or away from, patterns incrementally. It teaches when a pattern is justified and how to introduce one safely instead of overengineering upfront.
This link may earn us a small commission at no extra cost to you. Affiliate disclosure
More resources on Refactoring
refactoring.guru
Refactoring.guru is a comprehensive learning hub for software engineers focused on design patterns and refactoring, offering clear explanations, code examples in multiple languages, and visual diagrams. It covers the Gang of Four design patterns, refactoring techniques, and practical guidance for writing clean, maintainable code.
Martin Fowler Refactoring
Martin Fowler's hub for refactoring, defining the practice as disciplined, behavior-preserving restructuring of code and linking to his catalog, book editions and related articles. A short orientation that clarifies what refactoring is, why small steps matter, and where to study further.
Clean Code
Master refactoring techniques with Mosh Hamedani's Clean Code course and write maintainable, readable code. Start improving your skills today!
Refactoring: Improving the Design of Existing Code
Martin Fowler's foundational book defining refactoring and cataloguing dozens of named, step-by-step transformations in Java, alongside a list of code smells. After it, you can spot poorly structured code and improve its design in small, test-protected steps without changing behavior.
sourcemaking.com
SourceMaking is a comprehensive online guide to software design patterns, anti-patterns, and refactoring, featuring a searchable pattern library with detailed explanations, diagrams, and code examples across multiple languages.