johnvbrennan


Comments:

Refactoring: Replacing Enums with the Strategy Pattern

posted by johnvbrennanjohnvbrennan(0) 4 years, 6 months ago 0

This is a very good article. The example is simple to understand and yet also shows off the power available when utilising interfaces. I use enums a lot in my code and for most things they are great. I find they make code more readable but then you hit a scenario where you you have to extend an enum and there's a lot of additional work that comes with that.

John

Reply