News for hackers. Stuff that matters.
Re:Good Software Development Habits by cma on Monday November 18, 2024 @02:50AM (#42170578)
A very common one is two booleans with one combination of them being an invalid state (e.g. never are both bools true in a valid state but all can be false or a mixture). Use an enum instead that represents only the three valid cases.

There are no comments on this comment yet.