If-Else Might Not Be The Devil
You’ve seen the articles. “Don’t use If-Else”, and “Here’s a design pattern to stop using If-Else”, or Stack Overflow questions asking why If-Else is bad. I even read one article recently that said, and I quote, “But, let’s put an end to that right now, by replacing If-Else with the state object.” There seems to be some idea among some software engineers that using the If-Else construct in your language of choice is a bad thing. I…