Re:Are You a JavaScript Guru? Try This Test
by lubujackson on Saturday February 02, 2013 @02:14PM
(#5156945)
God, I hate this crap. Edge cases != useful knowledge
[ Parent
| on HN ]
Re:Are You a JavaScript Guru? Try This Test
by CognitiveLens on Saturday February 02, 2013 @02:24PM
(#5156989)
Agreed. It seems like the lesson is "don't write ambiguous JS, because it will bite you" - I'm not sure you have to know the nature of every bite in order to be a JS expert, because a JS expert should generally be writing very predictable code!
Re:Are You a JavaScript Guru? Try This Test
by berntb on Saturday February 02, 2013 @03:00PM
(#5157108)
Many years ago, I had a bookmark in my Harbinson-Steele's C book, for the precedence of operators.
After a while, I decided that was stupid and removed the bookmark -- if I ever needed to look at operator precedence, then I should use parentheses.
That said, to understand the edge cases are valuable, because you should recognize when you get close to them (not only in your own code).