News for hackers. Stuff that matters.
Re:Anti-if: The Missing Patterns by duke360 on Friday June 10, 2016 @04:31AM (#11875034)
I'm quite supportive to the anti-if pattern but the presented example sounds me more like "code smells" and doesn't really makes me happy to me anti-if is a great winner when you can safely compute all the execution path in advance (in a way where you have not to nest ifs, of course!) but in situations where your code have to react to something that happens "on the moment"... well, probably "if" are more convenient (not always of course) anyway thanks to have raised the point, this topic is always interesting to me

There are no comments on this comment yet.