
| 汇聚编程的价值观、原则和模式. 增强程序员编程的艺术性和易读性 世界顶级大师沥血之作.. 经得起考验的传世经典... |
| Kent Beck,软件业中最具创新力、最富盛名的领袖之一。长期以来,他一直致力于挑战软件工程教条,推动模式、测试驱动开发以及极限编程等思想的应用和传播。他是Three Rivers Institute的创始人和董事,也是Agitar Software的成员。他在Addison-Wesley出版了多本书籍,其中包括Test-Driven Development(中译版《测试驱动开发》),以及与Cynthia Andres合著的Extreme Programming Explained(中译版《解析极限编程》)。... .. << 查看详细 |
| chapter 1: introduction 1 tour guide 3 and now 4 chapter 2: patterns 5 chapter 3: a theory of programming 9 values 10 communication 10 simplicity 11 flexibility 12 principles 13 local consequences 13 minimize repetition 14 logic and data together 14 symmetry 15 declarative expression 16 rate of change 17 conclusion 18 .chapter 4: motivation 19 chapter 5: class 21 class 22 simple superclass name 23 qualified subclass name 24 abstract interface 24 interface 26 abstract class 26 versioned interface 27 value object 28 specialization 31 subclass 32 implementor 34 inner class 34 instance-specific behavior 36 conditional 36 delegation 38 pluggable selector 40 anonymous inner class 41 library class 41 conclusion 42 chapter 6: state 43 state 44 access 45 direct access 46 indirect access 47 common state 47 variable state 48 extrinsic state 50 variable 50 local variable 51 field 52 parameter 53 collecting parameter 55 optional parameter 56 var args 56 parameter object 57 constant 58 role-suggesting name 58 declared type 60 initialization 61 eager initialization 61 lazy initialization 62 conclusion 62 chapter 7: behavior 63 control flow 64 main flow 64 message 65 choosing message 65 double dispatch 66 decomposing (sequencing) message 67 reversing message 67 inviting message 68 explaining message 69 exceptional flow 70 guard clause 70 exception 72 checked exceptions 72 exception propagation 73 conclusion 73 chapter 8: methods 75 composed method 77 intention-revealing name 79 method visibility 80 method object 82 overridden method 83 overloaded method 83 method return type 84 method comment 85 helper method 85 debug print method 86 conversion 87 conversion method 87 conversion constructor 88 creation 88 complete constructor 89 factory method 90 internal factory 91 collection accessor method 91 boolean setting method 93 query method 93 equality method 94 getting method 95 setting method 96 safe copy 97 conclusion 98 chapter 9: collections 99 metaphors 100 issues 101 interfaces 103 array 103 iterable 104 collection 104 list 104 set 105 sortedset 105 map 106 implementations 107 collection 108 list 108 set 108 map 109 collections 110 searching 111 sorting 112 unmodifiable collections 113 single-element collections 114 empty collections 114 extending collections 114 conclusion 115 chapter 10: evolving frameworks 117 changing frameworks without changing applications117 incompatible upgrades 118 encouraging compatible change 120 library class 121 objects 121 conclusion 129 appendix a: performance measurement 131 example 131 api 132 implementation 133 methodtimer 134 canceling overhead 136 tests 136 comparing collections 137 comparing arraylist and linkedlist 139 comparing sets 140 comparing maps 141 conclusion 142 bibliography 145 general programming 145 philosophy 147 java 148 index 149 |
商品评论(0条)