Unfortunately, we can’t get rid of conditionals completely. It would mean drastically re-architecting most code bases. (Though it is technically possible). But, we can change the way we write conditionals to make them less complex. We will look at two strategies for dealing with if-statements. After that, we will turn our attention to switch-statements.
... read the whole story at jrsinclair.com.