object-orientation-abuser

Switch statements

11 minute read

Switch statements are a code smell. Complex conditionals can be hard to read. The same pattern of switch statements might be repeating in several locations.