Refactoring to Patterns (Hardcover)
Joshua Kerievsky
- 出版商: Addison Wesley
- 出版日期: 2004-08-15
- 售價: $2,680
- 貴賓價: 9.5 折 $2,546
- 語言: 英文
- 頁數: 400
- 裝訂: Hardcover
- ISBN: 0321213351
- ISBN-13: 9780321213358
-
相關分類:
Refactoring
-
相關翻譯:
重構與模式 (Refactoring to Patterns) (簡中版)
重構-向範式前進 (Refactoring to Patterns) (繁中版)
買這商品的人也買了...
-
$2,610$2,480 -
$970Introduction to Algorithms, 2/e
-
$860$731 -
$780$741 -
$590$466 -
$750$675 -
$560$504 -
$2,340$2,223 -
$850$723 -
$480$379 -
$750$593 -
$780$616 -
$780$663 -
$680$537 -
$580$493 -
$490$382 -
$149$134 -
$199$179 -
$890$703 -
$620$490 -
$990$782 -
$1,176Computer Organization and Design: The Hardware/Software Interface, 3/e(IE) (美國版ISBN:1558606041)
-
$780$616 -
$480$408 -
$650$507
相關主題
商品描述
Description:
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.
Intended for the more experienced student, 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.
Table of Contents:
Foreword by Ralph Johnson.
Foreword by Martin Fowler.
Preface.
What Is This Book About?
What Are the Goals of This Book?
Who Should Read This Book?
What Background Do You Need?
How to Use This Book.
The History of This Book.
Standing on the Shoulders of Giants.
Acknowledgments.
1. Why I Wrote This Book.
Over-Engineering.
The Patterns Panacea.
Under-Engineering.
Test-Driven Development and Continuous Refactoring.
Refactoring and Patterns.
Evolutionary Design.
2. Refactoring.
What Is Refactoring?
What Motivates Us to Refactor?
Many Eyes.
Human-Readable Code.
Keeping It Clean.
Small Steps.
Design Debt.
Evolving a New Architecture.
Composite and Test-Driven Refactorings.
The Benefits of Composite Refactorings.
Refactoring Tools.
3. Patterns.
What Is a Pattern?
Patterns Happy.
There Are Many Ways to Implement a Pattern.
Refactoring to, towards, and away from Patterns.
Do Patterns Make Code More Complex?
Pattern Knowledge.
Up-Front Design with Patterns.
4. Code Smells.
Duplicated Code.
Long Method.
Conditional Complexity.
Primitive Obsession.
Indecent Exposure.
Solution Sprawl.
Alternative Classes with Different Interfaces.
Lazy Class.
Large Class.
Switch Statements.
Combinatorial Explosion.
Oddball Solution.
5. A Catalog of Refactorings to Patterns.
Format of the Refactorings.
Projects Referenced in This Catalog.
A Starting Point.
A Study Sequence.
6. Creation.
Replace Constructors with Creation Methods.
Move Creation Knowledge to Factory.
Encapsulate Classes with Factory.
Introduce Polymorphic Creation with Factory Method.
Encapsulate Composite with Builder.
Inline Singleton.
7. Simplification.
Compose Method.
Replace Conditional Logic with Strategy.
Move Embellishment to Decorator.
Replace State-Altering Conditionals with State 166
Replace Implicit Tree with Composite.
Replace Conditional Dispatcher with Command.
8. Generalization.
Form Template Method.
Extract Composite.
Replace One/Many Distinctions with Composite.
Replace Hard-Coded Notifications with Observer.
Unify Interfaces with Adapter.
Extract Adapter.
Replace Implicit Language with Interpreter.
9. Protection.
Replace Type Code with Class.
Limit Instantiation with Singleton.
10. Accumulation.
Move Accumulation to Collecting Parameter.
Move Accumulation to Visitor.
11. Utilities.
Chain Constructors.
Unify Interfaces.
Extract Parameter.
Afterword by John Brant and Don Roberts.
References.
Index.
商品描述(中文翻譯)
描述:
在备受期待的《重构到模式》中,Joshua Kerievsky通过将模式与重构的演进过程永久地结合在一起,改变了我们的设计方法。本书面向有经验的学生,介绍了模式导向重构的理论和实践:一系列低级重构的序列,允许设计师安全地将设计移动到、朝向或远离模式实现。Kerievsky使用来自真实项目的代码记录了超过二十个基于模式的设计转换的思考和步骤。在此过程中,他提供了关于模式差异以及如何以最简单的方式实现模式的见解。
目录:
前言:Ralph Johnson撰写的序言。
前言:Martin Fowler撰写的序言。
前言。
本书内容。
本书目标。
适合阅读本书的人群。
需要什么背景知识。
如何使用本书。
本书的历史。
站在巨人的肩膀上。
致谢。
第一章:我为什么写这本书。
过度工程。
模式的万灵药。
不足工程。
测试驱动开发和持续重构。
重构和模式。
演进式设计。
第二章:重构。
什么是重构。
什么激励我们进行重构。