News for hackers. Stuff that matters.
Re:Don't Use Booleans by makeitdouble on Monday July 08, 2024 @07:19PM (#40910832)
It usually starts with one boolean.

Then people avoid touching it when expending a bit, so they just add another boolean for the corner case they're dealing with (potentially as an optional last param). And so on, until someone refactors the whole function bearing the burden to retouch all its legacy that accumulated up to that point.

There are no comments on this comment yet.