3 ms·
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
by jacobsenscott 8y ago
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.