Refactoring to Patterns - Joshua Kerievsky

Refactoring to Patterns

Joshua Kerievsky

出版时间

2004-08-15

ISBN

9780321213358

评分

★★★★★
书籍介绍

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.

用户评论
原创性的想法少,或者在某些工程实践中堵住了再来按图索骥会觉得好吧。个人更推荐Michael Feathers的那本Working Effectively with Legacy Code。
立意很好,可总觉得这书写得太晦涩了,另外书中本就残缺的源码竟然网上没有完整的免费下载!
连接起Martin Fowler之Refactoring与GoF之Design Patterns的桥梁。展现了如何在重构过程中运用模式的经验,不过模式类的书始终需要实践才能学得通。
在《重构》的基础上进一步阐述了重构和模式之间的关系,并提供了向模式重构的思路和步骤,非常赞的一本书!
重构一书里已有通过重构引入模式的内容,不觉得这本书有必要。
收藏