Code Smell 36 - Switch/case/elseif/else/if statements
First programming lesson: Control structures. Senior developer lesson: avoid them.
Problems
Too many decisions together
Coupling
Duplicated code
Violation of Open/Closed Principle.
A new condition should not change the main algorithm.
Nulls
S...
·1 min read·maximilianocontieri.comUpdated Read the article
Kenny Perez
Muy bueno, quiza se pudo extender un poco más