Yahoo!’s JavaScript architect Douglas Crockford continues his lecture series on the JavaScript programming language with a discussion of functions in JavaScript. “Functions are the very best part of JavaScript,” Crockford says. “It’s where the power is, it’s where the beauty is.” Watch the video to learn why.
Original source
5 responses to “Crockford on JavaScript – Act III: Function the Ultimate”
0:50:35. Yes, creating a new instance to set up prototype part of inheritance and not invoking Parent.apply(this,arguments) in Child constructor body does make the sample code pretty shit. Or not liking this so setting that to this so this is available in closures (drink much do you?). He's a brilliant guy with many good ideas but someone should write a book called "Douglas Crockford; the bad parts". I do wonder what the V8 team or Forefox has to say about his "ninja" pattern all to avoid using keyword (just trashing all optimisation and consuming extra cpu/memory)
He even states himself that "this is how it's intended to be used" and then goes about completely ignoring it.
42:45 promise object
Crockford is a JavaScript guru, we do not need him to show us easy stuffs, it is everywhere on the net.
Why does he keep calling a library that might (perhaps, only) include things like a fade function an "ajax library"?
I read Crockford a lot. But from my perspective, his examples are somehow too subjective.And they reflect his coding style more then they can serve for educational purposes.