Posted Wednesday, September 24, 2008 by
Randy Cox
If our
Seth Godin-obsessed CEO is truly the trendsetter people make him out to be, then I supposed I shouldn't be ashamed to announce that I've recently become a Douglas Crockford fanboy. It happened entirely by accident, I assure you; I was not actively searching for a hero.

It started when I was in the midst of the job search that landed me here at Compendium. I needed to brush up on some of the more advanced JavaScript programming techniques, and like many software geeks, I started by surveying the latest O'Reilly books on the topic. The most current book I found also had the snappiest title:
JavaScript: The Good Parts, by Douglas Crockford. I printed out the sample chapter and spent many days puzzling over it. It went way beyond the depth of JavaScript magic than what I suspect most web developers would care to master. I was intrigued by this man who had obviously devoted a huge amount of time and energy studying a language that most developers had written off as a toy for the first decade of its life.
The book states in no uncertain terms that many features of JavaScript are bad, awful, and even
evil. I kid you not. Even so, Crockford is clearly fond of the language and uses his book as a soapbox from which he can preach his message of how to use the good parts of JavaScript to make elegant and powerful software.
Once I joined the Compendium Blogware engineering team I needed to learn
YUI, the Yahoo! User Interface Library. Yahoo! provides a great
library of videos for developers who want to use their tools. Since Crockford happens to be Yahoo!'s resident JavaScript guru, he stars in many of the videos. Now I had a face and a voice to put with the name and the strong opinions put forth in the book. Crockford typically appears in worn jeans and a sloppy shirt. He's got gray hair and a scraggly beard and his manner brings to mind a grumpy old man who yells at kids to get off of his lawn.
Crockford wrote a JavaScript code-checking tool called
JSLint that I started to use. He warns on the website that "JSLint may hurt your feelings." At least his software is consistent with his personality. JSLint enforces a style of JavaScript programming that many programmers would find to be overly restrictive, but each restriction is backed by common sense and vast experience with the language. The idea is that is we write JavaScript code within his framework, the code will be more readable, less ambiguous, and less buggy. It's hard to argue with that. Crockford is very active on the JSLint Yahoo! group, which is fantastic for us fanboys, but his replies to many questions posted to the list are terse to the point of almost being rude.
"Oh," we fanboys say. "That's Crockford for you." Then we smile and shake our heads a little.