Making code cleaner by replacing multiple conditionals with a strategy dictionary
When you're on a road with no forks, there's zero chance of taking the wrong path. As the road gains forks, your chances of reaching your destination without getting lost decrease. The same thing happens when we program. The more conditionals we add, the greater the chance of the code taking the wrong path and producing unintended effe.