View Review Details


Book:   JavaScript: The Good Parts
Subject:   Oh, so that's how a book about a programming language should be written...
Date:   2008-06-04 13:27:06
From:   robreed
Rating:  StarStarStarStarStar

You could say that I'm the sort of person who complains a lot. I'd prefer to think of myself as someone with high, but reasonable, expectation who is often disappointed.


The purpose of that introduction is to try to convince you that I'm more likely to assume the role of critic than flatterer. Are that setup, maybe you'll guess that what follows is one doozy of a compliment.


It may be true that I have never enjoyed reading 19 pages of any programming book more than the first 19 pages (the first 2 chapters) of "JavaScript: The Good Parts".


Chapter 1 "The Good Parts", which serves as an introduction, is a pithy assessment of the good and the bad of JavaScript, and as importantly, the good and the bad of the approach, attitudes, and biases people bring with them to the topic that threaten to skew their opinions of the language. The author accomplishes this in four pages.


Before I continue, I want to make the point that I am not a huge fan of JavaScript, but these issues are not specific to Javascript. Many of the author's remarks apply to almost any language, or more generally the circumstance of working with something new and unfamiliar, especially when we are only reluctantly doing it because we are obligated to.


Chapter 2 "Grammar" must be the most succinct, well-written treatment of the grammar of a programming language I have ever read (and unfortunately I have read more than my fair share). I know we tend to think of writing in computer books as no more than a means to an end, but I would argue that Chapter 2 in "JavaScript: The Good Parts" is art.


I have read the entire book, but feel inspired to comment on just the first two chapters because they are special. I will say that the rest of the book does not disappoint.


The author's obvious sincerity and the matter-of-fact style of the writing may even persuade experienced programmers to set-aside their predispositions and prejudices in favor of fairly considering JavaScript.


Thanks to the author!


Finally, I want to say that I hope to see more ":The Good Parts" titles in the future from O'Reilly. I would argue that a great approach that works for more than just programming topics.


To answer a question readers of this review may be asking, while this is a very good first JavaScript book, it is not an appropriate introduction to programming. That's unfortunate for all of the prospective programmers out there. I would love to see an introductory programming book inspired by this one.

Full Threads Oldest First
  • RE:Oh, so that's how a book about a programming language should be written...,  November 03 2008
    Rating: StarStarStarStarStar
    Submitted by grego1128   [Respond | View]

    I agree that this is an excellent book - I keep going back to it. My only complaint is the index. It often disappoints. Case in point - the 'this' keyword has only one page listed in the index at p49 while the keyword itself is sprinkled over 30 pages beginning at p27 which provides the initial explanation for it. I recommend the book but be prepared to mark up the index so its value will increase over time.
  • Re: Oh, so that's how a book about a programming language should be written...,  June 06 2008
    Submitted by Anonymous Reader   [Respond | View]

    This book may be great for advanced programmers but it is really bad for beginners. The railroad diagrams are very unintuitive. Would examples have killed you?

    The book is beyond terse with way too few examples and very poor explanation for beginners. Definitely don't get it if you're a beginner.

    Mr. Crockford on the other hand has fantastic videos on the web with a wonderful energy to teach but seems to fall into the hole so many intellectuals do where they can't go back to step 1 and explain from there clearly.

    He is a wonderful speaker though. Maybe we just need more of his great videos.