Crockford on JavaScript
yuiblog.com
yuiblog.com
In fact, his previous lectures at yahoo somewhere around 2007ish have fundamentally changed how I think about JavaScript: what was bad spaghetti once, became real architecture. What I felt was an ugly language became a cool language with some warts.
Crockfords lectures began a long process to convert me from "who needs functional programming" to "why does this method here have side effects?" (a route many programmers are probably taking, but for me was the beginning of the journey)
And finally, even if you think that you know all about JS, these lectures are still very entertaining to watch, because, IMHO, Crockford is a brilliant speaker.
I too disagree with him about several things - these two off the top of my head:
* White space - real tabs are much easier to work with than spaces
* new Operator - a) we can automagically return a new instance if the constructor is called normally and b) even if we couldn't, that's no reason to stop using a major part of OOP.
With spaces there's no sudden, 'woah, what happened there'.
some_function_with_too_many_args(some_argument, another,
a_third, and_so_on);
That style is problematic with tabs. The only way to make that look right with all different tab settings (8, 4, 2, etc) is to mix tabs and spaces--indent to the main indentation level with tabs and then use spaces to indent the rest of the way. Not many editors do that automatically for you and so it is not a popular style.All spaces is much easier to deal with (at the cost of being non-customizable) and so that seems to be the dominant way of doing things nowadays.
I don't want my site to behave like theirs. Is he somehow responsible for their site's architecture? I have trouble with both yahoo.com and my.yahoo.com- which I used to use quite a bit.
For something completely different, check out Project Future, Crockford's lecture on Walt Disney's dreams.
Scene 6 from the JS series also has slides and Flash video available: http://yuilibrary.com/theater/douglas-crockford/crockford-lo...
He's also been active on Google+
Most of the javascript programmers today are merely copy-paste JS programmers who basically just copy paste some iQuery code and modify to suite their own project.
A lot of credit goes to Cockford for popularizing Javascript as a core languages and sensitzinf programmers about the differences it shares with other programming languages.
I don't even ...
Edit: For the record, I personally really like javascript, since exposing myself to crockfords evangelism and picking up node.js.
(Edit: it gets better later on)