Bravo! A pity your title doesn’t reflect the content and vice versa. Indeed, if you only have enums or discrete values an if or switch is not SOLID, but to call it poor mans polymorphism based in just that one case, I think not.
Bravo! A pity your title doesn’t reflect the content and vice versa. Indeed, if you only have enums or discrete values an if or switch is not SOLID, but to call it poor mans polymorphism based in just that one case, I think not.
Independent Software architect, trainer and coach at Delphino Consultancy (http://www.delphino-consultancy.nl)