8 ms·
I like Martin Fowler's Refactoring. This is called 'Replace conditional with subtype' explained here: http://www.refactoring.com/catalog/replaceConditionalWithP
by campnic 14y ago
I like Martin Fowler's Refactoring. This is called 'Replace conditional with subtype' explained here: http://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html http://www.refactoring.com/catalog/replaceConditionalWithPol...
The book is a good read and a fantastic reference.