Re:Twitter crashes itself with commas
by OriginalSyn on Wednesday July 18, 2012 @12:49PM
(#4261597)
But this is a simple error caught by js(h/l)int. And it's especially easy to spot if you just declare each var one after another:
Then your editor (which you've a integrated a linter... right?) will protested:
And if you have a global by the same name you'll see:
Granted, if you assign it a default value then, yes you're going to have a bad time. But if you follow the white spacing rules of jsLint it will catch the obvious error.
[ Parent
| on HN ]
There are no comments on this comment yet.