News for hackers. Stuff that matters.
Re:How Enums Spread Disease – And How to Cure It (2012) by Enthouan on Wednesday April 15, 2015 @02:10PM (#9382896)
I guess the way to solve this disease is just to use Enum for what they are supposed to be used for. Which is storing a state, that's it.

This article really lacks of OOP concept. In the first example the enum is a property on the 'vehicule' object, it would be way better to add all the properties needed to that class instead of creating a weird 'VehicleTypeTuple' struct...

There are no comments on this comment yet.