News for hackers. Stuff that matters.
Re:Flags Are a Code Smell (2014) by adhesive_wombat on Sunday May 22, 2022 @04:55AM (#31466185)
They also crop up all the time in embedded code, because flags are how lots of hardware works.

But, yes, it's usually a different smell in that context because you just know someone is hot-gluing the exact bitmask for a thing into some hardware-agnostic controller code without writing a proper interface that translates from an internal representation (say, an enum) to actual physical bits.

There are no comments on this comment yet.