on Javascript

This Just In: JavaScript is a Real Language, and from a comment of that post:

Of course JavaScript is a real language, in fact you could go so far as to say JavaScript is a real functional programming language! Its native support of closures and higher-order functions puts it in a league that most developers never even considered it to be capable of.

On Douglas Crockford talk JavaScript: The Good Parts (worth checking) he mentions that Brendan Eich, the inventor of Javascript, actually wanted to code in Scheme, but was not allowed at Netscape so he inserted Scheme features into Javascript, thus the existence of closures and higher-order functions in Javascript.

And for the ones about to code:

Here's Douglas, javascript coding guidelines. Luckily, he's also created (and shared) a Javascript validator that we can use to check how correct and safe our javascript is, called jslint.

jslint can be run directly from web, but might be more convenient to integrate it into your work flow. For example, using Textmate (or command line), you can use Rhino(a Javascript Java interpreter) to run it like:

java -jar /dir/rhino1_7R2/js.jar /dir/jslint.js ${TM_FILEPATH}

Also, when using jslint don't forget to check the options to adjust the warnings and errors you want to see, when validating your code.

No comments: