Sunday, May 17, 2009

JavaScript is elegant

I used to think that jQuery made JavaScript elegant. I was wrong. JQuery just helped me understand what is already a quite elegant language. Watch this entertaining 1 hour Google Tech Talk by Douglas Crockford, author of JSLint, JS Min, and several essays on JavaScript misconceptions.

http://www.youtube.com/watch?v=hQVTIJBZook

Among the things he discusses are:
  • The origins of JavaScript and the design flaws
  • General constructs to avoid in JavaScript
  • How closures are used to create objects
  • Benefits of using as a functional language
  • Uses of the triple equality (===) operator
Probably his best statement about JavaScript is that most of us know how to use JavaScript without taking the time to understand it.

If you've done or will do any work in JavaScript, please take the full one hour to watch this talk. It's worth it.

No comments:

Post a Comment