パンくず
書籍 Refactoring to Patterns
Simplification
概要
Simplification、単純化に関するリファクタリング
単純化に関するリファクタリング
Refactoring | リファクタリング | 補足 |
---|---|---|
Compose Method | メソッドの構造化 | ーー |
Replace Conditional Logic with Strategy | Strategyによる条件判断の置き換え | ーー |
Move Embellishment to Decorator | Decoratorによる拡張機能の書き換え | ーー |
Replace State-Altering Conditionals with State | Stateによる状態変化のための条件判断の置き換え | 参考:GofのStateパターン |
Replace Implicit Tree with Composite | Compositeによる暗黙的なツリー構造の置き換え | 参考:GofのCompositeパターン |
Replace Conditional Dispatcher with Command | Commandによる条件つきディスパッチャの置き換え | 参考:GofのCommandパターン |