Re:JavaScript Programming Patterns
by sprsquish on Tuesday October 06, 2009 @10:07AM
(#864112)
I've been burned several times by missing semicolons when minifying my code. Now I make sure they're always there. I'm also running everything through JSLint.
[ Parent
| on HN ]
I think JSLint can be a big help, especially with semicolons so I made a quick jQuery plugin to run things through it on page load. So I know exactly when something may be wrong.
I'm using the Javascript Tools bundle for TextMate. It runs JSLint every time I save a javascript file.