Читать «Рефакторинг с использованием шаблонов» онлайн - страница 213
Джошуа Кериевски
Расплывшееся решение 69,73,97,296
Сложность условий 68,71
Хирургия при помощи дробовика 73
Р
Расплывшееся решение 69, 73,97,296
Раха, Сомик 28,80
Реорганизация кода. См. Рефакторинг
Рефакторинг
Chain Constructors 68,69,380
Compose Method 60,61, 68,70,152,159
Composite 48
Decompose Conditional 159
Encapsulate Classes with Factory 61,68, 73,108
Encapsulate Composite with Builder 48, 60,61,68,72,124
Extract Adapter 61,238,295
Extract Class 47,48, 50, 74,86
Extract Composite 61,68, 70,237,248
Extract Factory 94
Extract Method 47,50,70
Extract Parameter 387
Extract Subclass 74,86
Form Template Method 60,62,68,69,237, 239
Inline Singleton 60,62,69,74,143
Introduce Null Object 61,68, 70,71,340, 342
Introduce Parameter Object 161
Introduce Polymorphic Creation with
Factory Method 61,68,69,116
Limit Instantiation with Singleton 62,335
Move Accumulation to Collecting
Parameter 61,68,71,352
Move Accumulation to Visitor 60,61,62, 68,69,71,75,359
Move Creation Knowledge to Factory 61, 69,73,96
Move Embellishment to Decorator 49,60, 61,68,71,72.174
Move Method 47
Parameterized Creation Methods 94
Pull Up Method 47,50
Rename Method 242
Replace Conditional Dispatcher with
Command 60,61,68,69,71,74,224
Replace Conditional Logic with Strategy 62,68, 71,72,158
Replace Conditional with Polymorphism 60,159,162
Replace Constructors with Creation Methods 61,84
Replace Hard-Coded Notifications with Observer 61,237,271
Replace Implicit Language with Interpreter 61,68,69,72,74,75,238,307
Replace Implicit Tree with Composite 48, 61,68,72,210
Replace Inheritance with Delegation 60, 193
Replace One/Many Distinctions with Composite 61,68,69,258
Replace State-Altering Conditionals with State 62, 68, 71,72,74,197
Replace Type Code with Class 68,72,324
Replace Type Code with Subclasses 159, 162,179
Substitute Algorithm 48,75
Unify Interfaces 384
Unify Interfaces with Adapter 61,68,69, 70,73,75,237,283
Visitor 75
Автоматизация 50
И шаблоны 36
Направление 59
Определение 39
Последовательность изучения 81
Робертс, Дон 27,28,50,353,391
Руфер, Расс 7
С
Сильное связывание 24
Синглтонизм 144
Слабое связывание 24
Сложность условий 68,71
Соломон, Мейнард 63
Составной метод 153
т
Таблица команд 227
Типовой метод 241
Тискиони, Джейсон 54
Томасес, Кен 29
У
Уникальные методы 241
Управляемая тестами разработка 35
Условный диспетчер 225
Ф
Фабрика 98
Фаулер, Мартин 20,24,27,28,50,67,159, 241,336
Франклин, Бенджамин 41
Фут, Брайан 34
X
Хелм, Ричард 27
Хершфилд, Роберт 29
Хирургия при помощи дробовика 73
ш В
ШаблонAdapter 61,237,283.284,295,297 Builder 60, 61,124Chain of Responsibility 133 Collecting Parameter 61,353 Command 60,61, 74,225 Composed Method 60,61 Composite 61,62,72,248 Creation Method 61,83, 85 Decorator 60,61,160,175,177 Facade 297Factory 61,97Factory Method 61,83 Interpreter 61,74,308 Iterator 60, 61Null Object 61,341Observer 61,271Protection Proxy 176Proxy 114Registry 145Singleton 60,62,144,335State 62,74,198Strategy 33,62,159,177 Template Method 60,62 Type-Safe Enum 326 Visitor 60,62,351,359,363 И проектирование 64Способы реализации 56 | Barzun, Jacques 42Baumer, Dirk 29Beck, Kent 5, 25,27, 29,60,63,67,144,152, 336,342,353Bloch, Joshua 86, 326Brant, John 27,28,50,391Brown, Kyle 7, 29Builder 60,61,124cChain Constructors 68,69,380Chain of Responsibility 133Collecting Parameter 61,353 Combinatorial Explosion 69,75,311Command 60, 61, 74, 225Composed Method 60,61Compose Method 60,61,68, 70,152,159Composite 48, 61, 62, 72, 248Conditional Complexity 68,71 Creation Method 61,83,85 Cunningham, Ward 5,42,45,144,336DDecompose Conditional 159Decorator 60, 61,160,175,177 |
э | Duplicated Code 68,69 |
Эванс, Эрик 28,244Эккел, Брюс 6 | EEckel, Bruce 6 |
Я | Encapsulate Classes with Factory 61, 68, 73, 108 |
Язык шаблонов 53 | Encapsulate Composite with Builder 48,60, |
А | 61,68, 72,124Evans, Eric 28,244 |
Adapter 61,237,283,284,295,297Alexander, Christopher 53Alternative Classes with Different Interfaces 69, 73,284Anderson, Bruce 341 | Extract Adapter 61, 238, 295Extract Class 47,48,50,74,86Extract Composite 61,68, 70,237,248Extract Factory 94 |