Book description
In 1994, Design Patterns changed the landscape of object-oriented development by introducing classic solutions to recurring design problems. In 1999, Refactoring revolutionized design by introducing an effective process for improving code. With the highly anticipated Refactoring to Patterns, Joshua Kerievsky has changed our approach to design by forever uniting patterns with the evolutionary process of refactoring.
This book introduces the theory and practice of pattern-directed refactorings: sequences of low-level refactorings that allow designers to safely move designs to, towards, or away from pattern implementations. Using code from real-world projects, Kerievsky documents the thinking and steps underlying over two dozen pattern-based design transformations. Along the way he offers insights into pattern differences and how to implement patterns in the simplest possible ways.
Coverage includes:
A catalog of twenty-seven pattern-directed refactorings, featuring real-world code examples
Descriptions of twelve design smells that indicate the need for this book’s refactorings
General information and new insights about patterns and refactoring
Detailed implementation mechanics: how low-level refactorings are combined to implement high-level patterns
Multiple ways to implement the same pattern—and when to use each
Practical ways to get started even if you have little experience with patterns or refactoring
Refactoring to Patterns reflects three years of refinement and the insights of more than sixty software engineering thought leaders in the global patterns, refactoring, and agile development communities. Whether you’re focused on legacy or “greenfield” development, this book will make you a better software designer by helping you learn how to make important design changes safely and effectively.
Table of contents
- Title Page
- Copyright Page
- Contents
- Foreword by Ralph Johnson
- Foreword by Martin Fowler
- Preface
- Chapter 1: Why I Wrote This Book
- Chapter 2: Refactoring
- Chapter 3: Patterns
- Chapter 4: Code Smells
- Chapter 5: A Catalog of Refactorings to Patterns
- Chapter 6: Creation
- Chapter 7: Simplification
- Chapter 8: Generalization
- Chapter 9: Protection
- Chapter 10: Accumulation
- Chapter 11: Utilities
- Afterword by John Brant and Don Roberts
- References
- Index
Product information
- Title: Refactoring to Patterns
- Author(s):
- Release date: August 2004
- Publisher(s): Addison-Wesley Professional
- ISBN: 0321213351
You might also like
book
Refactoring at Scale
Making significant changes to large, complex codebases is a daunting task--one that's nearly impossible to do …
book
Refactoring: Improving the Design of Existing Code
As the application of object technology--particularly the Java programming language--has become commonplace, a new problem has …
book
Refactoring: Improving the Design of Existing Code
Fully Revised and Updated–Includes New Refactorings and Code Examples “Any fool can write code that a …
book
Implementing Domain-Driven Design
“For software developers of all experience levels looking to improve their results, and design and implement …