* The sacred text: Refactoring: Improving the Design of Existing Code 1st Edition
* https://refactoring.guru/
-
Feature Envy
- Move method
-
Long method
- Extract method
- Extract class
-
Switch statements (🤔)
- Replace Conditional Logic with Strategy
-
Long class
- Extract method
- Extract class
-
Long parameter list
- Replace parameters with tuple
- Replace constructor with builder
-
Shotgun surgery
-
Divergent change (Single responsibility violation)
- Extract class
-
Repetitive code
- Extract class
- Extract method
-
Magic numbers
- Replace Magic Number with Symbolic Constant
- Inline method
- Remove/Hide middle man
- Replace inheritance with delegation
- Replace temp variable with query
- ... https://refactoring.guru/refactoring/techniques