News for hackers. Stuff that matters.
Re:Anti-If: The missing patterns (2016) by jacobsenscott on Wednesday June 27, 2018 @04:55PM (#17411787)
Of course there are legitimate cases to use if/else.

This blog post suffers from the classic problem of blog post code examples - to fit the example in a blog post it needs to be trivial, and because it is trivial it doesn't demonstrate the real value of these techniques.

I see if/else overused all the time - every single day in fact - when the techniques in the blog post should have been applied.

There are no comments on this comment yet.