App 下载
注册
登录
|
搜索
正在搜索中...
首页
我的书架
我的主页
我的收藏
我的书评
重构,一言以蔽之,就是在不改变外部行为的前提下,有条不紊地改善代码。多年前,正是本书原版的出版,使重构终于从编程高手们的小圈子走出,成为众多普通程序员日常开发工作中不可或
……
[ 展开全部 ]
缺的一部分。本书也因此成为与《设计模式》齐名的经典著作,被译为中、德、俄、日等众多语言,在世界范围内畅销不衰。 本书凝聚了软件开发社区专家多年摸索而获得的宝贵经验,拥有不因时光流逝而磨灭的价值。今天,无论是重构本身,业界对重构的理解,还是开发工具对重构的支持力度,都与本书最初出版时不可同日而语,但书中所蕴涵的意味和精华,依然值得反复咀嚼,而且往往能够常读常新。 本评注版力邀国内资深专家执笔,在英文原著基础上增加中文点评与注释,旨在以先行者的学研心得与实践感悟,对读者阅读与学习加以点拨、指明捷径。
[ 收起 ]
作者:Martin Fowler Kent Beck John Brant William Opdyke Don Roberts
出版社:电子工业出版社
定价:69.00元
ISBN:9787121134500
给个评价
做个书摘
书摘 (21 )
评价 (1 )
查看所有书摘
按目录显示书摘
有品位!
还没有认为这本书添加过书摘,赶紧来做第一个吧!
发布一条书摘有50分入账哦。
做第一条书摘
点击加载更多
导购链接
×
做书摘
文字书摘
读图识字
至少还需要输入
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
*
*
×
编辑书摘
书摘
最少还需要输入
10
字
写点笔记吧
最少还需要输入
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
*
页码
×
删除
您确定要删除吗?
有品位!
还没有认为这本书添加过书摘,赶紧来做第一个吧!
发布一条书摘有50分入账哦。