App 下载
注册
登录
|
搜索
正在搜索中...
首页
我的书架
我的主页
我的收藏
我的书评
重构,一言以蔽之,就是在不改变外部行为的前提下,有条不紊地改善代码。多年前,正是本书原版的出版,使重构终于从编程高手们的小圈子走出,成为众多普通程序员日常开发工作中不可或
……
[ 展开全部 ]
缺的一部分。本书也因此成为与《设计模式》齐名的经典著作,被译为中、德、俄、日等众多语言,在世界范围内畅销不衰。 本书凝聚了软件开发社区专家多年摸索而获得的宝贵经验,拥有不因时光流逝而磨灭的价值。今天,无论是重构本身,业界对重构的理解,还是开发工具对重构的支持力度,都与本书最初出版时不可同日而语,但书中所蕴涵的意味和精华,依然值得反复咀嚼,而且往往能够常读常新。 本评注版力邀国内资深专家执笔,在英文原著基础上增加中文点评与注释,旨在以先行者的学研心得与实践感悟,对读者阅读与学习加以点拨、指明捷径。
[ 收起 ]
作者:Martin Fowler Kent Beck John Brant William Opdyke Don Roberts
出版社:电子工业出版社
定价:69.00元
ISBN:7121134500
给个评价
做个书摘
书摘 (21 )
评价 (1 )
查看所有书摘
按目录显示书摘
只显示目录
chapter 1 refactoring, a first example(新增批注共21条) 1
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
the starting point 2
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
the first step in refactoring 9
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
decomposing and redistributing the statement metho
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replacing the conditional logic on price code with
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
final thoughts 41
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 2 principles in refactoring(新增批注共11条) 43
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
defining refactoring 43
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
why should you refactor? 45
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
when should you refactor? 48
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
what do i tell my manager? 51
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
problems with refactoring 53
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
refactoring and design 57
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
refactoring and performance 60
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
where did refactoring come from? 61
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 3 bad smells in code (by kent beck and mar
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共17条) 65
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
duplicated code 66
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
long method 67
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
large class 70
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
.long parameter list 71
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
divergent change 73
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
shotgun surgery 74
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
feature envy 74
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
data clumps 75
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
primitive obsession 76
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
switch statements 76
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
parallel inheritance hierarchies 77
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
lazy class 77
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
speculative generality 78
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
temporary field 78
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
message chains 79
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
middle man 81
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
inappropriate intimacy 82
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
alternative classes with different interfaces 82
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
incomplete library class 83
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
data class 83
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
refused bequest 84
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
comments 84
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 4 building tests(新增批注共2条) 87
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
the value of self.testing code 87
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
the junit testing framework 89
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
adding more tests 97
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 5 toward a catalog of refactorings
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共1条) 103
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
format of the refactorings 103
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
finding references 105
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
how mature are these refactorings? 106
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 6 composing methods(新增批注共9条) 109
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract method 110
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
inline method 117
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
inline temp 118
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace temp with query 119
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce explaining variable 124
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
split temporary variable 128
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
remove assignments to parameters 130
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace method with method object 134
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
substitute algorithm 137
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 7 moving features between objects
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共12条) 139
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
move method 139
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
move field 144
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract class 147
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
inline class 151
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
hide delegate 153
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
remove middle man 156
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce foreign method 158
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce local extension 160
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 8 organizing data(新增批注共9条) 167
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
self encapsulate field 168
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace data value with object 172
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
change value to reference 175
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
change reference to value 179
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace array with object 181
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
duplicate observed data 186
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
change unidirectional association to bidirectional
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
change bidirectional association to unidirectional
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace magic number with symbolic constant 200
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
encapsulate field 201
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
encapsulate collection 202
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace record with data class 211
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace type code with class 211
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace type code with subclasses 217
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace type code with state/strategy 220
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace subclass with fields 225
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 9 simplifying conditional expressions
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共6条) 229
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
decompose conditional 229
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
consolidate conditional expression 231
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
consolidate duplicate conditional fragments 234
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
remove contr01 flag 236
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace nested conditional with guard clauses 240
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace conditional with polymorphism 245
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce null object 249
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce assertion 258
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 10 making method calls simpler(新增批注共14条) 2
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
rename method 264
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
add parameter 266
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
remove parameter 267
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
separate query from modifier 269
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
parameterize method 273
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace parameter with explicit methods 277
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
preserve whole object 280
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace parameter with method 283
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
introduce parameter object 286
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
remove setting method 293
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
hide method 296
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace constructor with factory method 297
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
encapsulate downcast 301
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace error code with exception 303
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace exception with test 308
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 11 dealing with generalization(新增批注共6条) 31
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
pull up field 313
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
pull up method 315
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
pull up constructor body 317
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
push down method 320
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
push down field 321
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract subclass 322
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract superclass 327
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract interface 331
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
collapse hierarchy 334
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
form template method 335
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace inheritance with delegation 342
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
replace delegation with inheritance 345
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 12 big refactorings (by kent beck and mart
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共11条) 349
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
tease apart inheritance 351
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
convert procedural design to objects 358
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
separate domain from presentation 363
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
extract hierarchy 367
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 13 refactoring, reuse, and reality (by wil
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共8条) 373
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
a reality check 374
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
why are developers reluctant to refactor their pro
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
a reality check (revisited) 388
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
resources and references for refactoring 389
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
implications regarding software reuse and technolo
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
a final note 391
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
references 391
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 14 refactoring tools (by don roberts and j
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
refactoring with a tool 395
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
technical criteria for a refactoring tool 397
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
practical criteria for a refactoring tool 399
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
wrap up 401
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
chapter 15 putting it all together (by kent beck)
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
(新增批注共2条) 403
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
references 407
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
list of soundbites 411
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
index 413
还没有人在此章节添加过书摘,赶紧来抢第一吧!
在此章节添加书摘
导购链接
×
做书摘
文字书摘
读图识字
至少还需要输入
10
字
保存原图片为书摘
上传图片
识别
最多输入
500
个字
上传图片
重新上传
写点笔记吧
至少还需要输入
10
字
章节(选填)
chapter 1 refactoring, a first example(新增批注共21条) 1
the starting point 2
the first step in refactoring 9
decomposing and redistributing the statement metho
replacing the conditional logic on price code with
final thoughts 41
chapter 2 principles in refactoring(新增批注共11条) 43
defining refactoring 43
why should you refactor? 45
when should you refactor? 48
what do i tell my manager? 51
problems with refactoring 53
refactoring and design 57
refactoring and performance 60
where did refactoring come from? 61
chapter 3 bad smells in code (by kent beck and mar
(新增批注共17条) 65
duplicated code 66
long method 67
large class 70
.long parameter list 71
divergent change 73
shotgun surgery 74
feature envy 74
data clumps 75
primitive obsession 76
switch statements 76
parallel inheritance hierarchies 77
lazy class 77
speculative generality 78
temporary field 78
message chains 79
middle man 81
inappropriate intimacy 82
alternative classes with different interfaces 82
incomplete library class 83
data class 83
refused bequest 84
comments 84
chapter 4 building tests(新增批注共2条) 87
the value of self.testing code 87
the junit testing framework 89
adding more tests 97
chapter 5 toward a catalog of refactorings
(新增批注共1条) 103
format of the refactorings 103
finding references 105
how mature are these refactorings? 106
chapter 6 composing methods(新增批注共9条) 109
extract method 110
inline method 117
inline temp 118
replace temp with query 119
introduce explaining variable 124
split temporary variable 128
remove assignments to parameters 130
replace method with method object 134
substitute algorithm 137
chapter 7 moving features between objects
(新增批注共12条) 139
move method 139
move field 144
extract class 147
inline class 151
hide delegate 153
remove middle man 156
introduce foreign method 158
introduce local extension 160
chapter 8 organizing data(新增批注共9条) 167
self encapsulate field 168
replace data value with object 172
change value to reference 175
change reference to value 179
replace array with object 181
duplicate observed data 186
change unidirectional association to bidirectional
change bidirectional association to unidirectional
replace magic number with symbolic constant 200
encapsulate field 201
encapsulate collection 202
replace record with data class 211
replace type code with class 211
replace type code with subclasses 217
replace type code with state/strategy 220
replace subclass with fields 225
chapter 9 simplifying conditional expressions
(新增批注共6条) 229
decompose conditional 229
consolidate conditional expression 231
consolidate duplicate conditional fragments 234
remove contr01 flag 236
replace nested conditional with guard clauses 240
replace conditional with polymorphism 245
introduce null object 249
introduce assertion 258
chapter 10 making method calls simpler(新增批注共14条) 2
rename method 264
add parameter 266
remove parameter 267
separate query from modifier 269
parameterize method 273
replace parameter with explicit methods 277
preserve whole object 280
replace parameter with method 283
introduce parameter object 286
remove setting method 293
hide method 296
replace constructor with factory method 297
encapsulate downcast 301
replace error code with exception 303
replace exception with test 308
chapter 11 dealing with generalization(新增批注共6条) 31
pull up field 313
pull up method 315
pull up constructor body 317
push down method 320
push down field 321
extract subclass 322
extract superclass 327
extract interface 331
collapse hierarchy 334
form template method 335
replace inheritance with delegation 342
replace delegation with inheritance 345
chapter 12 big refactorings (by kent beck and mart
(新增批注共11条) 349
tease apart inheritance 351
convert procedural design to objects 358
separate domain from presentation 363
extract hierarchy 367
chapter 13 refactoring, reuse, and reality (by wil
(新增批注共8条) 373
a reality check 374
why are developers reluctant to refactor their pro
a reality check (revisited) 388
resources and references for refactoring 389
implications regarding software reuse and technolo
a final note 391
references 391
chapter 14 refactoring tools (by don roberts and j
refactoring with a tool 395
technical criteria for a refactoring tool 397
practical criteria for a refactoring tool 399
wrap up 401
chapter 15 putting it all together (by kent beck)
(新增批注共2条) 403
references 407
list of soundbites 411
index 413
页码(选填)
这本书已经添加了这些章节,请勾选或者新建你的书摘所属的章节
add
up
down
remove
chapter 1 refactoring, a first example(新增批注共21条) 1
the starting point 2
the first step in refactoring 9
decomposing and redistributing the statement metho
replacing the conditional logic on price code with
final thoughts 41
chapter 2 principles in refactoring(新增批注共11条) 43
defining refactoring 43
why should you refactor? 45
when should you refactor? 48
what do i tell my manager? 51
problems with refactoring 53
refactoring and design 57
refactoring and performance 60
where did refactoring come from? 61
chapter 3 bad smells in code (by kent beck and mar
(新增批注共17条) 65
duplicated code 66
long method 67
large class 70
.long parameter list 71
divergent change 73
shotgun surgery 74
feature envy 74
data clumps 75
primitive obsession 76
switch statements 76
parallel inheritance hierarchies 77
lazy class 77
speculative generality 78
temporary field 78
message chains 79
middle man 81
inappropriate intimacy 82
alternative classes with different interfaces 82
incomplete library class 83
data class 83
refused bequest 84
comments 84
chapter 4 building tests(新增批注共2条) 87
the value of self.testing code 87
the junit testing framework 89
adding more tests 97
chapter 5 toward a catalog of refactorings
(新增批注共1条) 103
format of the refactorings 103
finding references 105
how mature are these refactorings? 106
chapter 6 composing methods(新增批注共9条) 109
extract method 110
inline method 117
inline temp 118
replace temp with query 119
introduce explaining variable 124
split temporary variable 128
remove assignments to parameters 130
replace method with method object 134
substitute algorithm 137
chapter 7 moving features between objects
(新增批注共12条) 139
move method 139
move field 144
extract class 147
inline class 151
hide delegate 153
remove middle man 156
introduce foreign method 158
introduce local extension 160
chapter 8 organizing data(新增批注共9条) 167
self encapsulate field 168
replace data value with object 172
change value to reference 175
change reference to value 179
replace array with object 181
duplicate observed data 186
change unidirectional association to bidirectional
change bidirectional association to unidirectional
replace magic number with symbolic constant 200
encapsulate field 201
encapsulate collection 202
replace record with data class 211
replace type code with class 211
replace type code with subclasses 217
replace type code with state/strategy 220
replace subclass with fields 225
chapter 9 simplifying conditional expressions
(新增批注共6条) 229
decompose conditional 229
consolidate conditional expression 231
consolidate duplicate conditional fragments 234
remove contr01 flag 236
replace nested conditional with guard clauses 240
replace conditional with polymorphism 245
introduce null object 249
introduce assertion 258
chapter 10 making method calls simpler(新增批注共14条) 2
rename method 264
add parameter 266
remove parameter 267
separate query from modifier 269
parameterize method 273
replace parameter with explicit methods 277
preserve whole object 280
replace parameter with method 283
introduce parameter object 286
remove setting method 293
hide method 296
replace constructor with factory method 297
encapsulate downcast 301
replace error code with exception 303
replace exception with test 308
chapter 11 dealing with generalization(新增批注共6条) 31
pull up field 313
pull up method 315
pull up constructor body 317
push down method 320
push down field 321
extract subclass 322
extract superclass 327
extract interface 331
collapse hierarchy 334
form template method 335
replace inheritance with delegation 342
replace delegation with inheritance 345
chapter 12 big refactorings (by kent beck and mart
(新增批注共11条) 349
tease apart inheritance 351
convert procedural design to objects 358
separate domain from presentation 363
extract hierarchy 367
chapter 13 refactoring, reuse, and reality (by wil
(新增批注共8条) 373
a reality check 374
why are developers reluctant to refactor their pro
a reality check (revisited) 388
resources and references for refactoring 389
implications regarding software reuse and technolo
a final note 391
references 391
chapter 14 refactoring tools (by don roberts and j
refactoring with a tool 395
technical criteria for a refactoring tool 397
practical criteria for a refactoring tool 399
wrap up 401
chapter 15 putting it all together (by kent beck)
(新增批注共2条) 403
references 407
list of soundbites 411
index 413
×
添加一个书摘本
搜索创建书摘本
搜索
正在搜索...
不对,换一下
书名
作者
出版社
备注
ISBN
*
*
chapter 1 refactoring, a first example(新增批注共21条) 1
the starting point 2
the first step in refactoring 9
decomposing and redistributing the statement metho
replacing the conditional logic on price code with
final thoughts 41
chapter 2 principles in refactoring(新增批注共11条) 43
defining refactoring 43
why should you refactor? 45
when should you refactor? 48
what do i tell my manager? 51
problems with refactoring 53
refactoring and design 57
refactoring and performance 60
where did refactoring come from? 61
chapter 3 bad smells in code (by kent beck and mar
(新增批注共17条) 65
duplicated code 66
long method 67
large class 70
.long parameter list 71
divergent change 73
shotgun surgery 74
feature envy 74
data clumps 75
primitive obsession 76
switch statements 76
parallel inheritance hierarchies 77
lazy class 77
speculative generality 78
temporary field 78
message chains 79
middle man 81
inappropriate intimacy 82
alternative classes with different interfaces 82
incomplete library class 83
data class 83
refused bequest 84
comments 84
chapter 4 building tests(新增批注共2条) 87
the value of self.testing code 87
the junit testing framework 89
adding more tests 97
chapter 5 toward a catalog of refactorings
(新增批注共1条) 103
format of the refactorings 103
finding references 105
how mature are these refactorings? 106
chapter 6 composing methods(新增批注共9条) 109
extract method 110
inline method 117
inline temp 118
replace temp with query 119
introduce explaining variable 124
split temporary variable 128
remove assignments to parameters 130
replace method with method object 134
substitute algorithm 137
chapter 7 moving features between objects
(新增批注共12条) 139
move method 139
move field 144
extract class 147
inline class 151
hide delegate 153
remove middle man 156
introduce foreign method 158
introduce local extension 160
chapter 8 organizing data(新增批注共9条) 167
self encapsulate field 168
replace data value with object 172
change value to reference 175
change reference to value 179
replace array with object 181
duplicate observed data 186
change unidirectional association to bidirectional
change bidirectional association to unidirectional
replace magic number with symbolic constant 200
encapsulate field 201
encapsulate collection 202
replace record with data class 211
replace type code with class 211
replace type code with subclasses 217
replace type code with state/strategy 220
replace subclass with fields 225
chapter 9 simplifying conditional expressions
(新增批注共6条) 229
decompose conditional 229
consolidate conditional expression 231
consolidate duplicate conditional fragments 234
remove contr01 flag 236
replace nested conditional with guard clauses 240
replace conditional with polymorphism 245
introduce null object 249
introduce assertion 258
chapter 10 making method calls simpler(新增批注共14条) 2
rename method 264
add parameter 266
remove parameter 267
separate query from modifier 269
parameterize method 273
replace parameter with explicit methods 277
preserve whole object 280
replace parameter with method 283
introduce parameter object 286
remove setting method 293
hide method 296
replace constructor with factory method 297
encapsulate downcast 301
replace error code with exception 303
replace exception with test 308
chapter 11 dealing with generalization(新增批注共6条) 31
pull up field 313
pull up method 315
pull up constructor body 317
push down method 320
push down field 321
extract subclass 322
extract superclass 327
extract interface 331
collapse hierarchy 334
form template method 335
replace inheritance with delegation 342
replace delegation with inheritance 345
chapter 12 big refactorings (by kent beck and mart
(新增批注共11条) 349
tease apart inheritance 351
convert procedural design to objects 358
separate domain from presentation 363
extract hierarchy 367
chapter 13 refactoring, reuse, and reality (by wil
(新增批注共8条) 373
a reality check 374
why are developers reluctant to refactor their pro
a reality check (revisited) 388
resources and references for refactoring 389
implications regarding software reuse and technolo
a final note 391
references 391
chapter 14 refactoring tools (by don roberts and j
refactoring with a tool 395
technical criteria for a refactoring tool 397
practical criteria for a refactoring tool 399
wrap up 401
chapter 15 putting it all together (by kent beck)
(新增批注共2条) 403
references 407
list of soundbites 411
index 413