YUI Theater — Douglas Crockford: "Crockford on JavaScript — Episode IV: The Metamorphosis of Ajax" (93 min.)
Last week, Yahoo! JavaScript architect Douglas Crockford delivered the fourth installment of his Crockford on JavaScript series:
- Volume One: The Early Years
- Chapter 2: And Then There Was JavaScript
- Act III: Function the Ultimate
- Episode IV: The Metamorphosis of Ajax
- Part V: The End of All Things (March 31 — RSVP)
In this session, Douglas tackles the DOM. On the one hand there was JavaScript, he says, and JavaScript is "what made the browser work."
On the other hand, there was the Document Object Model, also known affectionately as the DOM. It is what most people hate when they say they hate JavaScript. Most of the people who say they hate JavaScript don't know JavaScript, might have never seen JavaScript, but they've felt the DOM alright. If you don't know what the difference is and you say, "JavaScript is the stupidest thing I've ever seen," you're not talking about JavaScript, you're talking about the DOM. The DOM is the browser's API. It is the interface. It provides JavaScript for manipulating documents.
The DOM may be imperfect, but it's nonetheless crucial to what frontend engineers do when they write web applications. In this talk, Douglas provides an overview, situated historically, of where the DOM came from, how it achieved ascendance with Ajax, and what the future might hold. In Douglas's inimitable fashion, this history starts with Sir John Harrington and takes us up to the present day. A few choice words for CSS are among the many applause lines for veteran developers:
I find within the community of people who use CSS great affection for it. They're totally invested in CSS, they love it. They can't imagine any other way of doing formatting in a document. It's it. It's sort of like watching an episode of Cops where the cops come in and break up the family dispute, and there's this "CSS ain't bad, you just don't understand it like I do. I know it hurts me, but I make mistakes, I'm wrong." CSS is awful, and it amazes me the way people get invested in it. It's like once you figure it out, kind of go "oh, OK, I see how I might be able to make it work," then you flip from hating it to loving it, and despising anybody who hasn't gone through what you've gone through. It doesn't make sense to me.
If the video embed below doesn't show up correctly in your RSS reader of choice, be sure to click through to watch the high-resolution version of the video on YUI Theater.
- Download video (m4v)
- Download slides
- A high-resolution, transcripted version of this talk is available on the YUI Theater site
Other Recent YUI Theater Videos:
- Douglas Crockford: Crockford on JavaScript -- Act III: Function the Ultimate — 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.
- Douglas Crockford: Crockford on JavaScript -- Chapter 2: And Then There Was JavaScript — Yahoo!'s JavaScript architect Douglas Crockford surveys the features of the JavaScript programming language.
- Douglas Crockford: Crockford on JavaScript -- Volume 1: The Early Years — Douglas Crockford puts the JavaScript programming language in its proper historical context, tracing the language's structure and conventions (and some of its quirks) back to their roots in the early decades of computer science.
- Christian Heilmann: YQL and YUI: Building Blocks for Quick Applications — The Yahoo! Developer Network's international evangelist Christian Heilmann discusses his philosophy for creating fast, powerful, compelling applications using the Yahoo Query Language (YQL) and the Yahoo User Interface Library (YUI).
