3 ms·
Poor article with poor code, and poor responses from the author in the article's own comments. The comment from 'isaacs' is better thought out than the article
by Stratoscope 14y ago
Poor article with poor code, and poor responses from the author in the article's own comments. The comment from 'isaacs' is better thought out than the article itself.
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.
- rmurphey3 14y agoComments like this make me so excited to write more posts. Thanks.
- Stratoscope 14y agoI 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.