News for hackers. Stuff that matters.
Re:Best Practices Exist For A Reason by bentlegen on Wednesday May 02, 2012 @05:21PM (#3921259)
What's harder, finding an extra trailing comma, or finding a missing semi-colon in a JavaScript file that contains no semi-colons?
Re:Best Practices Exist For A Reason by btilly on Wednesday May 02, 2012 @05:33PM (#3921323)
I was not comparing the possible pain of different bugs. I was merely stating that there is possible pain with commas.
Re:Best Practices Exist For A Reason by ricardobeat on Thursday May 03, 2012 @12:17AM (#3922357)
Visually? Finding the missing semi-colon. It should be missing from at most one line out of a hundred, and at the beginning of it, very easy to spot - it's a visible wart, as opposed to looking for a needle in a haystack.