Refactoring‑Pattern
| Smell | Refactor |
|---|---|
| Lange Methode | Extract Method |
| Lange Klasse | Extract Class |
| Switch / If‑Kaskade auf Typ | Replace Conditional with Polymorphism |
| Doppelte Bedingung | Decompose Conditional |
| Datenklumpen | Introduce Parameter Object |
| Magic Number | Replace Magic Number with Symbolic Constant |
| Feature Envy | Move Method |
| Shotgun Surgery | Move Method / Inline Method |
Zurück zu Informatik