Smells of Choosing: The switch That Keeps Growing
When the same switch on a kind of thing is copied into many places, a new kind means a hunt through the code and one copy is always missed; the smells of choosing all come from one decision with no home, and their cures give it one.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- Code Smell, Flag Argument, OOP, Polymorphism, Repeated Switch, software-development