News for hackers. Stuff that matters.
Re:Flags Are a Code Smell (2014) by tgv on Sunday May 22, 2022 @04:32AM (#31466081)
So to me that sounds less than perfect. Enterprise systems tend to be large, so it can be hard to keep track of the flags, and splitting flags can become a source of bugs. A simpler solution would be a (global, singleton) class that offers an interface to customisation. Of course, that might not be possible in an existing system, but it offers advantages over flags.

There are no comments on this comment yet.