Too often the response to JavaScript newcomers' questions is to throw Crockford's book at them.
JavaScript: the Good Parts is indeed a valuable, necessary body of knowledge--yet often cryptic and discouraging to programming novices. What's all this about closures? Semicolons? That === thing?
Yet there's JSLint, an online tool to verify that a given scrap of JavaScript meets the precepts established by Douglas Crockford. Even JS novices can see for themselves whether their scripts are up to the grade. Though some error messages frustrate, others guide the new developer to better coding style, expanded programming vocabulary, and even insight into JavaScript's structure. Just as you learned the grammar of spoken language by being gradually corrected in your usage, so can you learn programming languages through linting.
Too often the response to JavaScript newcomers' questions is to throw Crockford's book at them.
JavaScript: the Good Parts is indeed a valuable, necessary body of knowledge--yet often cryptic and discouraging to programming novices. What's all this about closures? Semicolons? That
===
thing?Yet there's JSLint, an online tool to verify that a given scrap of JavaScript meets the precepts established by Douglas Crockford. Even JS novices can see for themselves whether their scripts are up to the grade. Though some error messages frustrate, others guide the new developer to better coding style, expanded programming vocabulary, and even insight into JavaScript's structure. Just as you learned the grammar of spoken language by being gradually corrected in your usage, so can you learn programming languages through linting.