This question is motivated by something I\'ve lately started to see a bit too often, the if..else if..else structure. While it\'s simple and has its uses, somet
if..else if..else
These constructs can often be replaced by polymorphism. This will give you shorter and less brittle code.