Java, Architecture, Clean Code, Solid, Programming.
or switch statements. Each time a new condition is introduced, we find ourselves adding yet another if-then-else statement, thereby altering the class. Similarly, a class executing a process with numerous successive steps may require modifications each time a new step is added. Such practices run