Refactoring 101: Replace Conditional with Polymorphism
First of all, if you’re a software developer and have not read Refactoring: Improving the Design of Existing Code by Martin Fowler and Kent Beck, you should! It’s old but it’s a must read, and it definitely stands the test of time.