• 重构:改善既有代码的设计
图书条目标准图
21年品牌 40万+商家 超1.5亿件商品

重构:改善既有代码的设计

正版品相完好,套书和多封面版本咨询客服后再下单

25.94 3.8折 69 九品

仅1件

北京海淀
认证卖家担保交易快速发货售后保障

作者[美]Martin Fowler 著

出版社电子工业出版社

出版时间2011-06

版次1

装帧平装

上书时间2024-05-15

新起点书店

四年老店
已实名 已认证 进店 收藏店铺

   商品详情   

品相描述:九品
图书标准信息
  • 作者 [美]Martin Fowler 著
  • 出版社 电子工业出版社
  • 出版时间 2011-06
  • 版次 1
  • ISBN 9787121134500
  • 定价 69.00元
  • 装帧 平装
  • 开本 16开
  • 纸张 胶版纸
  • 页数 425页
  • 原版书名 Refactoring: Improving the Design of Existing Code
  • 丛书 传世经典书丛
【内容简介】
  重构,一言以蔽之,就是在不改变外部行为的前提下,有条不紊地改善代码。多年前,正是本书原版的出版,使重构终于从编程高手们的小圈子走出,成为众多普通程序员日常开发工作中不可或缺的一部分。《重构:改善既有代码的设计(评注版)》也因此成为与《设计模式》齐名的经典著作,被译为中、德、俄、日等众多语言,在世界范围内畅销不衰。

  Martin Fowler等著的《重构:改善既有代码的设计(评注版)》凝聚了软件开发社区专家多年摸索而获得的宝贵经验,拥有不因时光流逝而磨灭的价值。今天,无论是重构本身,业界对重构的理解,还是开发工具对重构的支持力度,都与本书最初出版时不可同日而语,但书中所蕴涵的意味和精华,依然值得反复咀嚼,而且往往能够常读常新。

  《重构:改善既有代码的设计(评注版)》力邀国内资深专家执笔,在英文原著基础上增加中文点评与注释,旨在以先行者的学研心得与实践感悟,对读者阅读与学习加以点拨、指明捷径。
【作者简介】
  Martin Fowler世界级软件开发大师,在面向对象分析设计、UML、模式、XP和重构等领域都有卓越贡献,曾任著名软件开发咨询公司ThoughtWorks的首席科学家。他的多部著作《分析模式》、《UML精悴》和《企业应用架构模式》等都已经成为脍炙人口的经典。
【目录】

chapter 1 refactoring, a first example(新增批注共21条) 

the starting point 

the first step in refactoring 

decomposing and redistributing the statement method 

replacing the conditional logic on price code with polymorphism 

final thoughts 

chapter 2 principles in refactoring(新增批注共11条) 

defining refactoring 

why should you refactor? 

when should you refactor? 

what do i tell my manager? 

problems with refactoring 

refactoring and design 

refactoring and performance 

where did refactoring come from? 

chapter 3 bad smells in code (by kent beck and martin fowler)

(新增批注共17条) 

duplicated code 

long method 

large class 

.long parameter list 

divergent change 

shotgun surgery 

feature envy 

data clumps 

primitive obsession 

switch statements 

parallel inheritance hierarchies 

lazy class 

speculative generality 

temporary field 

message chains 

middle man 

inappropriate intimacy 

alternative classes with different interfaces 

incomplete library class 

data class 

refused bequest 

comments 

chapter 4 building tests(新增批注共2条) 

the value of self.testing code 

the junit testing framework 

adding more tests 

chapter 5 toward a catalog of refactorings

(新增批注共1条) 

format of the refactorings 

finding references 

how mature are these refactorings? 

chapter 6 composing methods(新增批注共9条) 

extract method 

inline method 

inline temp 

replace temp with query 

introduce explaining variable 

split temporary variable 

remove assignments to parameters 

replace method with method object 

substitute algorithm 

chapter 7 moving features between objects

(新增批注共12条) 

move method 

move field 

extract class 

inline class 

hide delegate 

remove middle man 

introduce foreign method 

introduce local extension 

chapter 8 organizing data(新增批注共9条) 

self encapsulate field 

replace data value with object 

change value to reference 

change reference to value 

replace array with object 

duplicate observed data 

change unidirectional association to bidirectional 

change bidirectional association to unidirectional 

replace magic number with symbolic constant 

encapsulate field 

encapsulate collection 

replace record with data class 

replace type code with class 

replace type code with subclasses 

replace type code with state/strategy 

replace subclass with fields 

chapter 9 simplifying conditional expressions

(新增批注共6条) 

decompose conditional 

consolidate conditional expression 

consolidate duplicate conditional fragments 

remove contr01 flag 

replace nested conditional with guard clauses 

replace conditional with polymorphism 

introduce null object 

introduce assertion 

chapter 10 making method calls simpler(新增批注共14条) 

rename method 

add parameter 

remove parameter 

separate query from modifier 

parameterize method 

replace parameter with explicit methods 

preserve whole object 

replace parameter with method 

introduce parameter object 

remove setting method 

hide method 

replace constructor with factory method 

encapsulate downcast 

replace error code with exception 

replace exception with test 

chapter 11 dealing with generalization(新增批注共6条) 

pull up field 

pull up method 

pull up constructor body 

push down method 

push down field 

extract subclass 

extract superclass 

extract interface 

collapse hierarchy 

form template method 

replace inheritance with delegation 

replace delegation with inheritance 

chapter 12 big refactorings (by kent beck and martin fowler)

(新增批注共11条) 

tease apart inheritance 

convert procedural design to objects 

separate domain from presentation 

extract hierarchy 

chapter 13 refactoring, reuse, and reality (by william opdyke)

(新增批注共8条) 

a reality check 

why are developers reluctant to refactor their programs? 

a reality check (revisited) 

resources and references for refactoring 

implications regarding software reuse and technology transfer 

a final note 

references 

chapter 14 refactoring tools (by don roberts and john brant) 

refactoring with a tool 

technical criteria for a refactoring tool 

practical criteria for a refactoring tool 

wrap up 

chapter 15 putting it all together (by kent beck)

(新增批注共2条) 

references 

list of soundbites 

index




点击展开 点击收起

—  没有更多了  —

以下为对购买帮助不大的评价

此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP