Jaffer Haider

January 29, 2007

Fine Tuning your Javascript: YUI Js lectures

Filed under: Javascript, Web — Jaffer Haider @ 5:24 pm

Almost all the people I know who use Javascript have learnt it in bits and pieces. Myself, as well, have learnt Javascript on a need basis; if I run into a situation where I don’t know how the to handle it in the language, I look it up and proceed.

Very few people actually take the time to learn Javascript as a language, since the majority consider it to be a scripting language, something that is incomplete and not fully formed. This is probably the main reason why most of the Javascript code out on the web is crap.

With the rise of Web 2.0, Javascript has come into its own as the main source of behavior on web pages (HTML being the presentation and CSS being a bit of both I guess). Without Javascript, there would be no Web 2.0.

I came across a series of amazing lectures by Douglas Crockford, Yahoo!’s Javascript Architect. There are 3 series of lectures, each broken down into 3-4 smaller parts:

  1. The Javascript programming language (111 mins) (.ppt file)
  2. Advanced Javascript (67 mins) (.ppt file)
  3. An Inconvenient API: The Theory of DOM (78 mins) (.ppt file)

 

After going through the first series of lectures, I had so much of my code in mind that I wanted to rewrite (I haven’t gone through the other 2 series yet, but I found the first one really really useful). If you want to get your Javascript straight, these lectures are the best starting point. I really like Crockford’s style and the way he delivers (heck, he’s Yahoo!’s main Javascript dude, he HAS to be good).

It’s good to skim through the power point slides before and after watching the lectures, just to get a clear picture. But as in all cases of learning a new language, nothing beats actual coding. Keep these concepts in mind, and have a look at these proposed Javascript coding standards, and you’ll be on your way to writing good clean Javascript.

2 Comments »

  1. [...] you’ve never picked up a proper Javascript reference, and have learnt it from snippets, these lectures by Douglas Crockford are a must see. These will change the way you code Javascript, guaranteed!! (Yes, I will keep [...]

    Pingback by Standards Compliant Web Development (OMG that is such a boring title) « Jaffer Haider — May 4, 2007 @ 4:49 pm

  2. [...] right to the point. The best reference IMO that’ll get you started in the right direction is this 3 part series of lectures by Douglas Crockford. He’s currently a Senior Javascript Architect at Yahoo!, and his [...]

    Pingback by Writing better Javascript - The Essentials « Jaffer Haider — May 11, 2007 @ 1:01 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.