News for hackers. Stuff that matters.
Re:Flags Are a Code Smell (2014) by ChrisMarshallNY on Saturday May 21, 2022 @09:45PM (#31464116)
I don’t like using them, but, sometimes, they are required.

That pretty much sums up all kinds of “smelly” practices.

In my experience, “God said it, I believe it, and that settles it” type pronouncements end up looking fairly silly. We do what needs doing, to achieve our ends.

At least, that’s what most experienced ship programmers do.

What I prefer (I program in Swift), are computed properties that examine the current state, and synthesize a report on demand.

Can’t always do that, though. Things like performance and threading can be factors. I just ran into something like that, tonight. Not sure how I’ll solve it. I’ll sleep on it.

There are no comments on this comment yet.