网上购物 货比三家
您现在的位置:快乐比价网 > 图书 > 经济管理 > 战略管理 > 商品详情

从重构到模式(英文影印版)

分享到:
从重构到模式(英文影印版)

最 低 价:¥34.30

定 价:¥0.00

作 者:(美)Joshua Kerievsky

出 版 社:机械工业出版社

出版时间:2006 年1月

I S B N:7111175689

商品详情

编辑推荐

本书荣获2005年《软件开发》杂志图书通用类的效率大奖 (Productivity Award).本书提炼和反映了全球模式、重构和敏捷开发社区60多位软件工程领域先驱的思想和观点。不管你正在集中精力进行遗留开发还是新型开发,本书都将帮助你学会如何安全、有效地做出重要的设计变更,使你成为更好的软件设计人员。

内容简介

本书荣获2005年《软件开发》杂志图书通用类的效率大奖 (productivity award).
  1994年,《设计模式》通过引入经典的解决方案来处理反复出现的设计问题而改变了面向对象开发技术的发展前景;1999年,《重构》通过引入一种有效的过程来改善代码而彻底变革了设计的内涵;本书则通过重构的演进过程来保持模式的一致性,从而改变了我们的设计方法。..
  本书介绍了以模式为导向的重构方法的理论和实践:一系列低级重构,让设计人员能够安全地将设计移到模式实现,或从模式实现中移出设计。通过使用实际项目的代码,本书记录了潜藏在20多个基于模式的设计转换之下的思想方法和设计步骤。同时,本书对于模式差异以及如何以尽可能简单的方式实现模式提出了颇有见解的观点。
  
  本书的主要内容
  ■列出27个以模式为导向的重构,并辅以实际项目的代码实例。
  ■描述12个“设计味道” (design smell) ,指示出需要本书所讲述的重构方法。
  ■关于模式和重构的综合说明以及新的观点和想法。
  ■详细的实现机制:如何组合低级重构来实现高级模式。
  ■多种方式来实现相同的模式以及何时使用哪一种。
  ■采用实际的方法引导读者尤其是缺乏模式或重构经验的读者开始学习模式或重构方面的知识。...
  本书提炼和反映了全球模式、重构和敏捷开发社区60多位软件工程领域先驱的思想和观点。不管你正在集中精力进行遗留开发还是新型开发,本书都将帮助你学会如何安全、有效地做出重要的设计变更,使你成为更好的软件设计人员。

作者简介

Joshua Kerievsky Industrial Logic公司(http://industriallogic.com)的创始人,这是一家主营极限编程业务的公司。自1988年以来,作为一名专业的软件开发人员、教员和导师,他为Bankers Trust、MTV、MBNA、Ansys、MDS Sciex、Nielsen Media Research和Sun Microsystems等客户提供咨询及培训服务。他还经常在各种会议上发言,并撰写了大量的论文。.
.. << 查看详细

目录

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
chapter 1: why i wrote this book
over-engineering
the patterns panacea
under-engineering
test-driven development and continuous refactoring
refactoring and patterns
evolutionary design
chapter 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
chapter 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
chapter 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
chapter 5: a catalog of refactorings to patterns
format of the refactorings
projects referenced in this catalog
xml builders
html parser..
loan risk calculator
a starting point
a study sequence
chapter 6: creation
replace constructors with creation methods
motivation
mechanics
example
variations
move creation knowledge to factory
motivation
mechanics
example
encapsulate classes with factory
motivation
mechanics
example
variations
introduce polymorphic creation with factory method
motivation
mechanics
example
encapsulate composite with builder
mechanics
example
variations
inline singleton
motivation
mechanics
example
chapter 7: simplification
compose method
motivation
mechanics
example
replace conditional logic with strategy
motivation
mechanics
example
move embellishment to decorator
motivation
mechanics
example
replace state-altering conditionals with state
motivation
mechanics
example
replace implicit tree with composite
motivation
mechanics
example
replace conditional dispatcher with command
motivation
mechanics
example
chapter 8: generalization
form template method
motivation
mechanics
example
extract composite
motivation
mechanics
example
replace one/many distinctions with composite
motivation
mechanics
example
replace hard-coded notifications with observer
motivation
mechanics
example
unify interfaces with adapter
motivation
mechanics
example
extract adapter
motivation
mechanics
example
variations
replace implicit language with interpreter
motivation
mechanics
example
chapter 9: protection
replace type code with class
motivation
mechanics
example
limit instantiation with singleton
motivation
mechanics
example
introduce null object
motivation
mechanics
example
chapter 10: accumulation
move accumulation to collecting parameter
motivation
mechanics
example
move accumulation to visitor
motivation
mechanics
example
chapter 11: utilities
chain constructors
motivation
mechanics
example
unify interfaces
motivation
mechanics
example
extract parameter
motivation
mechanics
example...
afterword by john brant and don roberts
references
index

商品评论(0条)

暂无评论!

您的浏览历史

loading 内容加载中,请稍后...