Re:Two Things About Conditionals in JavaScript
by rmurphey3 on Tuesday December 11, 2012 @09:00AM
(#4904504)
Comments like this make me so excited to write more posts. Thanks.
Re:Two Things About Conditionals in JavaScript
by Stratoscope on Tuesday December 11, 2012 @04:23PM
(#4906916)
I forgot to add: Poor HN comment by Stratoscope.
I'm sorry, Rebecca, I should have found a much more polite and constructive way to phrase my comment. Please forgive me for my bad attitude yesterday.
Perhaps I could get back to you with some more positive and specific suggestions on how the article could be improved? In the meantime I just wanted to apologize for the tone of my comment.
As isaacs points out, the first part of the article about "else if" is much ado about very little. And why the sideways hint that there is something wrong with "else if"?
The second part is lazy and inconsistent refactoring. Why go through the exercise of removing the <= 100 test and never notice that there's also a redundant <= 10 test in all three examples?
If you know JavaScript at all, this article is a waste of your time.