There is a ton of material out there about the negative affects of nested if-else statements. Most of the time the problem description is accompanied by the refactoring tips and trick to make the code more readable, flat, compact, etc. With this article, we are going to explore a different approaches of dealing with the conditional "if" operator. We'll try to eliminate the "if" statements from the code usage, yet keeping all the benefits of conditional branching.
Killing "IF" softly
ยท 11 min read