JavaScript: The Good Parts: Working with the Shallow Grain of JavaScript

  Author:    Douglas Crockford
  ISBN:    0596517742
  Sales Rank:    1808
  Published:    2001-01
  Publisher:    O'Reilly Media, Inc.
  # Pages:    250
  Binding:    Paperback
  Avg. Rating:    5.0 based on 24 reviews
  Used Offers:    10 from $10.13
  Amazon Price:    $19.79
  (Data above last updated:  2008-10-11 06:43:16 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
JavaScript: The Good Parts: Working with the Shallow Grain of JavaScript
  
Most programming languages contain good and bad parts, but JavaScript has more than its share of the bad, having been developed and released in a hurry before it could be refined. This authoritative book offers a detailed explanation of the features that make JavaScript an outstanding object-oriented programming language, and warns you about the bad parts.

In the process, JavaScript: The Good Parts defines a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole. Author Douglas Crockford, a member of JavaScript 2.0 committee at ECMA, is considered by many people in the development community to be the JavaScript expert.

A beautiful, elegant, lightweight and highly expressive language lies buried under a steaming pile of good intentions and blunders, he explains. The very good ideas include functions, loose typing, dynamic objects, and an expressive object literal notation. Awful ideas include a programming model based on global variables. With JavaScript: The Good Parts, you can release this elegant programming language from its old shell, and create more maintainable, extensible, and efficient code.

The book's topics include:
  • Syntax
  • Objects
  • Functions
  • Inheritance
  • Arrays
  • Regular expressions
  • Methods
  • Style
  • Beautiful features
Appendices summarize JavaScript's bad parts and awful parts. But the greatest benefit of studying the good parts is that you can avoid the need to unlearn the bad parts. If you want to learn more about the bad parts and how to use them badly, consult any other JavaScript book.

JavaScript is the language of the Web -- the only language found in all browsers -- so avoiding it altogether is not an alternative. But, whether you're managing object libraries or just trying to get Ajax to run fast, Crockford's guidance in JavaScript: The Good Parts will help you create truly effective JavaScript code.

                  Reader Reviews 1 - 26 of 26                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
10-11-08 5 (NA)
(Hide Review...)  Excellent way to become fluent in Javascript.
Reviewer Permalink
I decided to pick up this book because I had been using Javascript for years as a "garnish" on top of my web development, but usually only in the form of a few hacked-together utility functions and edited scripts. In truth, I was afraid of the language - it appeared to be a very inconsistent, buggy system that took arcane knowledge to master across browsers. After starting to work with a number of JS frameworks, I knew I needed to confront the language and learn it properly.

This book is possibly one of the best technical/programming related books I have had the pleasure of reading. It doesn't try to be a massive encyclopedic volume like most of my other technical books, so I didn't have to devote countless hours and days pushing through lengthy filler. Every section contains brief information about the most critical parts of Javascript you need to begin coding what you need right away in a tidy object-oriented fashion. If you have experience with any other C-based language and understand general OOP concepts, this book will make you fluent in Javascript with the least amount of time and effort on your part!
(Review Data Last Updated: 2008-10-11 06:44:32 EST)
09-30-08 5 (NA)
(Hide Review...)  Excellent, Dense Reference
Reviewer Permalink
If you are familiar with programming and need to add JavaScript to your tool belt, this book will quickly teach you not only the syntax of JavaScript, but how to best employ it. The book is short but thorough; by focusing only on the "good parts" of JavaScript and giving you design patterns on how to use them, it succeeds in giving you only the information you need to become a good JavaScript programmer, and no more. It will not teach you everything about JavaScript, or help you read badly written JavaScript. The author states that the book is not a reference, but I believe it is more of a reference than a how-to book.

Many of this book's topics are covered at Yahoo's "YUI Theater" in a collection of the author's lectures (http://developer.yahoo.com/yui/theater/ anything by Douglas Crockford). If you are interested in YUI at all, this book will help you understand the conventions used in YUI.

To paraphrase the author, if you want a book that teaches you how to be a horrible JavaScript programmer, get any other JavaScript book.
(Review Data Last Updated: 2008-10-11 06:01:21 EST)
09-13-08 5 (NA)
(Hide Review...)  Great Tips
Reviewer Permalink
I've watched all of Douglas' videos on Yahoo YUI Theater and this is the perfect companion.
(Review Data Last Updated: 2008-10-01 05:34:26 EST)
09-07-08 3 (NA)
(Hide Review...)  Biased and slightly disappointing
Reviewer Permalink
The book is great for a summary of JavaScript's main concepts. Don't be fooled by the title though. "The best parts" is in Douglas Crockford's own opinion. Expect some biases and expect some things to be missing. For example, I wouldn't skip the concept of JSONp from a 2008 JavaScript book, but there's not a single reference to that here.
Get it if you have worked in a high-level language before and you care about writing neat JavaScript.
Skip it if you've been writing JavaScript and you want a comprehensive non-biased reminder or reference book.
(Review Data Last Updated: 2008-09-13 08:54:53 EST)
09-06-08 5 (NA)
(Hide Review...)  Lends expertise to the topic
Reviewer Permalink
JavaScript was developed in a hurry before it could be refined, and thus has more 'bad parts' than most programming languages. Senior JavaScript architect at Yahoo! Douglas Crockford in JavaScript: The Good Parts lends expertise to the topic (he's considered a key expert by many in the field) and provides a survey of the language which enables effective code development. Any library strong in Java development and analysis needs JAVASCRIPT: THE GOOD PARTS.
(Review Data Last Updated: 2008-09-13 08:54:53 EST)
08-31-08 5 1\1
(Hide Review...)  half best-practices tutorial, half advice collection
Reviewer Permalink
I bought this book expecting a textbook manual on how to use some JavaScript features. I ended up having an easy to read compilation of thoughts about the whole language, from an experienced Yahoo! member. But the best book feature was the way the author managed to convince us about the concept of "good part". It isn't an evangelic script - it has clear examples of why you should avoid certain language features (e.g., type inference in comparisons), along with sample recipes to make programming in JavaScript a pleasant experience (e.g., how to make good use of closures to encapsulate information within objects).

All in all, if you're into JavaScript (either warming up or as an old-school web developer) you will definitely benefit from the information within this book - and you'll find it light enough to make its reading pleasant!
(Review Data Last Updated: 2008-09-06 07:52:56 EST)
08-25-08 5 (NA)
(Hide Review...)  A great introduction to JavaScript
Reviewer Permalink
I purchased this book because I needed to learn JavaScript for a specific project I was given.

JavaScript: The Good Parts is great at describing the great features in JavaScript and what 'features' aren't worth the pain they'll put you through. This book is not a JavaScript reference book.

It provides a framework for building JavaScript applications that avoid common problems. The author describes avoiding problems with global variables (by wrapping them in an object or function), inheritance, and other small but important pitfalls.

I'm definately satisfied with the purchase. My biggest wish is that it was longer and more in-depth, as it's obvious the author has a lot more great JavaScript advice to impart.
(Review Data Last Updated: 2008-09-01 08:24:14 EST)
08-24-08 3 (NA)
(Hide Review...)  The book itself has its good and bad parts
Reviewer Permalink
I bought this book after reading a lot of articles by Douglas Crockford. While the book has very interesting parts and explain in depth things that you take for granted it also has some non-interesting (chapter 8: around 15 pages of "standard methods in standard types" including string.charAt, string.concat, and a lot more).

While I liked the book, I think it was 'filled' with this juiceless chapter because it was already too short (around 145 pages).

I think reading Douglas online is a better deal! See: http://www.crockford.com/
(Review Data Last Updated: 2008-09-01 08:24:14 EST)
08-18-08 5 (NA)
(Hide Review...)  At Long Last, A Serious Javascript Book
Reviewer Permalink
For about as long as it's been about, Javascript has endured a plague of poorly written and presented books. "A Million and One Ways to Write a Rollover." Many books will treat writing a function as an advanced move. It is left as an exercise for the reader how to manage ones code when the scale surpasses the trivial.

Douglas Crockford, who works at Yahoo, is unable to leave these questions in the realm of the intellectual, and he is in growing company. The era of large Javascript applications is upon us. By large, I mean applications that are mostly javascript, rather than HTML documents with a splash of code. This is more than mere AJAX. This is true application development, and with the scale must come application scale rigor.

It is to the problems of serious application developers that Crockford addresses the book. This is *not* an introductory book. It is generally assumed that the reader knows what the building blocks are.

Instead, Crockford focuses on issues such as organization, error avoidance, and writing code touched by many developers.

More importantly, Crockford expresses opinions. Technology as a field is never short on opinion, but technology books are a wasteland. Good luck finding a volume that spends much time at all criticizing its subject matter. Crockford pulls no punches. If he doesn't care for a given design decision, he says as much. It is, in a word, refreshing. Would that more books offered such candor.

Even if you disagree with Crockford's answers, the exercise of working through his arguments will teach you to ask better questions.

In exchange, you will learn about some of the more powerful but under-used aspects of Javascript, such as closures and first class functions. Furthermore, Crockford's detailed descriptions will give you clearer insight into exactly how the language really works.

In sum, Javascript: The Good Parts is the sort of book that can move you to the next level in your javascript development. Thank the gods the age of platonic, useless JS books is behind us.
(Review Data Last Updated: 2008-08-26 08:04:33 EST)
08-13-08 5 (NA)
(Hide Review...)  Not a beginner's book, but
Reviewer Permalink
This is not a book for non-programmers or people new to the field. It is a very dense yet approachable review of the very succinct and elegant language inside of what commonly is thought of as JavaScript. Highly recommended if you have previously thought negative things about JavaScript and want to improve you JavaScript skills, especially for those who favor elegant code.
(Review Data Last Updated: 2008-08-26 08:04:33 EST)
07-20-08 5 3\3
(Hide Review...)  Excellent Resource for JavaScript
Reviewer Permalink
I'll keep this short and sweet (like the book). This book distills the JavaScript language down to the bare essentials that a programmer will need to write clean, powerful code. It even tells you what to avoid along the way. Douglas Crockford takes a veritable pig of a language and turns it into delicious ham, bacon, and chops.

For someone serious about JavaScript, there are two books to own. JavaScript: The Definitive Guide to learn the language and its syntax (in minute detail), and this book, to learn how to use the language well.
(Review Data Last Updated: 2008-08-26 08:04:33 EST)
07-07-08 5 2\2
(Hide Review...)  A Great JavaScript Book for Everybody
Reviewer Permalink
This is the first book by Douglas Crockford a Senior Software Archtitect at Yahoo. He is widely known as one of the most knowledgeable on JavaScript apart from the creater of JavaScript (Brendan Eich). Douglas Crockford is the creator of JSON and has written many articles and presentations on JavaScript-related topics in web development.

His book JavaScript: the Good Parts, is a short (145 pages including Appendix) but is very useful for the person who wants to expand his/her JavaScript skills and knowledge. It reviews the basics of the language in the first two chapters and then focus on intermediate and advanced topics such as objects, inheritance, arrays, and methods.

The appendix categorizes the "bad" parts of JavaScript that are not good programming syntax and should be avoided such as global variables, scope, eval function, with statement, undefined variables and so forth.

I really like how Douglas Crockford gives you everything you need in this book that is relevant to how modern developers using JavaScript program and helping you understand it easily and quickly. No long-winded explanations or extra "filler" just to make the book longer. He is right to the point and explains it in a coherent, understandable way no matter what your "technical" level is.

This is a very useful book for the client-side developer who wants either a great reference book or somebody who wants to take their skills to the next level using JavaScript.

A must buy!
(Review Data Last Updated: 2008-07-23 07:18:55 EST)
07-07-08 2 0\6
(Hide Review...)  some value - because it's cheap
Reviewer Permalink
it's amazing that many great people don't know how to teach...somebody who loves this language so much to write so little and not explaining and providing examples......


The same thing you could find online.....


Don't take me wrong, you will learn a thing or two, but that's not the point.

So called diagrams or flow, whatever they are, they are totally useless.



(Review Data Last Updated: 2008-07-23 07:18:55 EST)
06-28-08 2 2\9
(Hide Review...)  trite and trivial
Reviewer Permalink
I have to wonder if the positive reviewers actually read much of this, it's so surface. This book will neither teach you javascript nor interest the experience programmer for more than about 15 minutes.

The money could be much better spent on a truly useful book.
(Review Data Last Updated: 2008-07-07 01:42:29 EST)
06-27-08 5 4\5
(Hide Review...)  Wish I had this book when I first started Javascript
Reviewer Permalink
Do you struggle when creating objects in Javascript?
Do you find the syntax to be non-intuitive and frustrating?
Do you know the difference between using a function as an object vs using an object literal?
Do you know how using object literals can simplify your code and create something similar to namespaces?
Do you know how to augment the type system -- for example, if wanted all strings to have a trim() method?
Do you know why the "new" statement is so dangerous? Do you know an alternative that eliminates the use of "new" entirely?

These are some of the topics that the book touches upon.

This book is aimed at someone with intermediate programming experience that wants to know the best way to create and use objects, arrays, types, etc. Crockford takes his experience with Javascript to show you best practices coding techniques and styles to use with Javascript. In addition, the book provides insights into what makes Javascript so confusing and what can be done about it.

You might ask "Isn't this stuff already covered in other books that I have?" The answer is no. For one, most other books use a psuedo-classical coding style (see below) to explain objects that is a source of confusion.

Javascript can be very confusing, especially for programmers who have extensive experience in other C-based languages (like myself). Writing good Javascript that uses objects, methods, etc. is hard. In Javascript, if you want to create objects, use inheritance and create methods, you have several different ways to write your code and it's difficult to know what the strengths and weaknesses of each are.

Crockford explains the problem plainly. Other C-based languages use class inheritance (Crockford calls this classical inheritance). Javascript, on the other hand, is the only popular language that uses prototype inheritance, which does not have classes. However, the syntax which Javascript uses to create object is Java-like (Crockford calls this pseudo-classical syntax). It's confusing, because it keeps you in a class-based frame of mind while working in a language that has no concept of classes.

Clarifying what's going on with the object model is the best part of this book. Crockford also explains other parts of Javascript that can be problematic and the techniques that he prefers for handling them. I don't necessarily agree with all of them, but the important thing is that he explains his reasoning.

To effectively learn Javascript, I recommend that you buy 1) a book that covers the details of the language and can be used as a reference (e.g. Javascript, the Definitive Guide) and 2) Crockford's book. Advanced programmers might also enjoy Pro Javascript Design Patterns, which shows a number of ways to combine Javascript with some of the GoF patterns. I would avoid any cookbook style books on Javascript, because you're better off using YUI, JQuery or one of the other Javascript libraries than writing your own drag-and-drops, calendars, etc.

There are a series of Yahoo! videos by Crockford that mirror the material in this book and can be found as podcasts under YUI Theater. They contain nearly all of the material in the book and probably a little more. Those videos are:

- Douglas Crockford/An Inconvenient API: The Theory of the DOM (3 parts)
- Douglas Crockford/The JavaScript Programming Language (4 parts)
- Douglas Crockford/Advanced JavaScript (3 parts)
- Douglas Crockford/Javascript The Good Parts
(Review Data Last Updated: 2008-07-07 01:42:29 EST)
06-27-08 5 0\1
(Hide Review...)  Wish I had this book when I first started Javascript
Reviewer Permalink
If you have already have several different Javascript books on your shelf and you're wondering why you need another, here are a few questions for you:
Do you know the difference between using a function as an object vs using an object literal?
Do you know how using object literals can simplify your code and create something similar to namespaces?
If you already know that every function contains an arguments collection, do you know that arguments is not an array.
Do you know how to augment the type system -- for example, if wanted all strings to have a trim() method?
Do you know why the "new" statement is so dangerous? Do you know an alternative that eliminates the use of "new" entirely?
Do you know what "types" typeof returns? Do you know how to work around its limitations?

Those are all covered in the book.

Douglas Crockford is probably THE person when it comes to Javascript. He knows it inside and out. He speaks frequently at conferences. He has published a lot of useful code, created Javascript tools and is an evangelist for Javascript best practices (he pushed JSON as the preferred data interchange format for Javascript programming back when the X in Ajax meant XML).

This is not a beginning Javascript book and it is not a cookbook on how to do tricks. It's aimed at someone with intermediate programming experience that wants to know the best way to create and use objects, arrays, types, etc. as well as ways that he and others have found to work around and maximize the potential of Javascript.

Javascript can be very confusing. The problem isn't that it's a kiddie language, as many used to say, but that it was built with functions based on Scheme, prototype inheritance based on Self and all wrapped up in a Java-like syntax. It turns out that many of the issues come from trying to make the syntax too Java-like where it really wasn't appropriate. (Side note: if you've seen any of Crockford's videos, you'll understand that Javascript's biggest problem is that it was rushed to market too quickly and early mistakes were never able to be corrected as they would break existing code).

So what Crockford accomplishes in his book is to explain Javascript in a way that addresses all of its confusing parts. He explains how Javascript works and how to write and how not to write code. As someone coming from a different language (C#), I have found that writing Javascript objects was difficult, because I was trying to use syntax that was familiar to what I was used to and not using the best way to do it in Javascript. I didn't even know what an object literal was until this book.

If you're learning program Javascript then you should have at least 2 books: one book that covers the details of the language and can be used as a reference (e.g. Javascript, the Definitive Guide) and Crockford's book. If you're new to programming, then a Javascript beginner's book would also be appropriate. Another book that might be useful for advanced programmers is Pro Javascript Design Patterns, which show a number of ways to combine Javascript with some of the GoF patterns.

Lastly, I would recommend you subscribe to the YUI Theater podcast. There are 11 videos by Crockford that tie somewhat to the topics in this book and listening to him explain it on video will learning easier. The videos that you'll want to look for are:
- Douglas Crockford/An Inconvenient API: The Theory of the DOM (3 parts)
- Douglas Crockford/The JavaScript Programming Language (4 parts)
- Douglas Crockford/Advanced JavaScript (3 parts)
- Douglas Crockford/Javascript The Good Parts
(Review Data Last Updated: 2008-06-29 06:24:56 EST)
06-19-08 5 2\2
(Hide Review...)  Essential Read For Javascript Developers
Reviewer Permalink
'JavaScript: The Good Parts' is a beautiful book that is a must-buy for all Javascript developers out there. Written with brevity clearly in mind (total is only a scant 150+ pages), this book will teach you how to become a BETTER Javascript developer and know why you want to do some things one way and avoid the pitfalls of doing things the WRONG way.

This book is all about efficiency and cleanliness. Written by one of the main developers of JSON, this book is organized smartly and craftfully. I love the fact that there isn't bloat and it's very easy to get through this book in no time at all. Does that mean you aren't getting your money's worth with this book??? HELLS NO!!

If you want to improve your Javascript developing skillset you owe it to yourself to pick up this book, it's one of the best books on the market in this subject matter.

***** HIGHLY RECOMMENDED
(Review Data Last Updated: 2008-06-27 06:24:39 EST)
06-16-08 5 0\1
(Hide Review...)  Serious JavaScript programming requires strong discipline
Reviewer Permalink
Serious JavaScript programming requires strong discipline to avoid many pitfalls that are somewhat encouraged by the language itself. The author is very aware of this problem and wrote a small, but very dense book, full of useful advices that comes from somebody who has doing sophisticated JavaScript programming for a long time. Crockford is very opinionated, and I don't always agree 100% with his suggestions, nevertheless, even whenever I disagree, I find his points are worth reading, his opinion is always valuable. This book would serve well both veteran JavaScript developers and programmers that, coming from different languages, may get lost among JavaScript's idiosyncrasies.
(Review Data Last Updated: 2008-06-20 07:51:45 EST)
06-14-08 3 4\4
(Hide Review...)  JavaScript: The Pretty Good Book
Reviewer Permalink
I'm not sure what I thought this book would be; I guess I assumed it would be along the lines of "C Traps and Pitfalls". At times, however, it seems almost more like an essay.

Certainly, parts of the book are worth five stars. I was especially pleased to see the author's treatment of how null, undefined, and NaN all relate to one another in unexpected ways -- something that has puzzled me in the past. It was also good to see a list of the reserved keywords, some of which I didn't know before, and concrete examples of the dangers of == and != versus === and !==.

An unexpected treat was to read his discussions on the technical aspects and slowness of arrays, bitwise operators, and "with" statements in JavaScript, and the origins of "switch" in FORTRAN IV, and JavaScript's similarity to Lisp, despite its outward resemblance to C.

It was also bemusing to see his example of "flight.equipment && flight.equipment.model" on page 21, as I also learned that same lesson while working on a flight-related application.

Yet, for the head Javascript guy at Yahoo, it seems that a few things are missing. For example, while he does say on page 80 that slice() creates a shallow copy of an array, he does not make it explicitly clear that array2 = array1 will effectively create a pointer, i.e., a copy by reference. To make a truly independent copy of an array, one needs array2 = array1.slice() (no arguments necessary). This caused me a day of frustration when I first learned it.

And was it not Yahoo themselves that determined that scripts should come at the end of a web page to improve load speed? Why is that not in here?

We also have nothing about compression techniques.

On the web, for free, one can read Andy King's superb 2003 article on "Optimizing JavaScript For Execution Speed". And most of the discussion on objects can be learned much more succinctly and with better examples from MDC's "Core JavaScript 1.5 Guide".

One can learn a lot about download optimization from Dean Edwards.

Chapter 4 (Functions) was good; Chapter 2 (Grammar) did nothing for me.

I was also a little disappointed with Appendix B, "The Bad Parts". Most of this dealt with undisciplined programming as opposed to flaws with the language itself. E.g., "switch" statement fall-throughs are bad. Are they? If one of your people creates an unintentional fall-through, then deal with him; don't blame the language. Does Crockford also believe that firearms should be banned because of the potential of misuse, even though they have a valid purpose? How about steak knives? This is kind of like Edsger W. Dijkstra telling us that we can never use GOTO, even though it does have its place.

Further, I've used "continue" statements effectively, albeit not so often. Maybe I'm a bad programmer?

And then, he advises against autoincrements!! (++)

Regarding style, the book is definitely filled with the usual O'Reilly collegiate pompousness that's often good, sometimes not-so-good.

In summary, there are some good parts, but as a whole this is yet another pricey programming book from which I only needed 10 pages.

If you're at the plateau of understanding that it's actually the DOM that's slow and inefficient, and that Javascript is only guilty by association, and that it's actually an elegant little language, then there's probably something in this book for you.
(Review Data Last Updated: 2008-06-17 07:43:39 EST)
06-07-08 5 1\1
(Hide Review...)  Approachable, no non-sense, thrilling to read, an excellent reference, proof that great books don't have to be huge
Reviewer Permalink
Weighing in at 140+ pages of content, this book cuts through the obscurities, pleasantries, and filler found in most technical books. Instead, this book dives straight into the heart of the JavaScript language. It presents the clearest comprehensive explanation of what makes JavaScript a great programming language that I've encountered to date. It nails the important concepts, like JavaScript's: object oriented nature, its classless (pseudoclassical) nature, and functional nature. While covering the fundamentals like JavaScript's: functions, lexical scoping, lambdas, prototypal inheritance, and functional inheritance.

This book's size makes it approachable for all audiences, its style is terse and concise. This book has the potential to do for JavaScript, what Richie's inspirational classic the C Programming Language did for the C language.

JavaScript is the programming language of the web (AJAX), and this book will guide you through the good parts of this often misunderstood language - while this book is an excellent reference, it is not intended to replace JavaScript: The Definitive Guide, you'll do best to have both these books on hand.

If you enjoyed (or are considering) this book then you may want to hear more of what Douglas Crockford has to say, check out his great JavaScript video series on the YUI Theater.
(Review Data Last Updated: 2008-06-15 07:46:39 EST)
06-07-08 5 (NA)
(Hide Review...)  Approachable, No Non-sense, Thrilling To Read, An Excellent Reference, Proof That Great Books Don't Have To Be Huge
Reviewer Permalink
Weighing in at 140+ pages of content, this book cuts through the obscurities, pleasantries, and filler found in most technical books. Instead, this book dives straight into the heart of the JavaScript language. It presents the clearest comprehensive explanation of what makes JavaScript a great programming language. It nails the important concepts, like JavaScript's: object oriented nature, its classless (pseudoclassical) nature, and functional nature. In addition it covers JavaScript's: functions, lexical scoping, lambdas, prototypal inheritance, and functional inheritance.

This book's size makes it approachable for all audiences, its style is terse and concise. This book has the potential to do for JavaScript, what Richie's inspirational classic the C Programming Language did for the C language.

JavaScript is the programming language of the web (AJAX), and this book will guide you through the good parts of JavaScript - while this book is an excellent reference, it is not intended to replace JavaScript: The Definitive Guide, you'll do best to have both these books on hand.

If you enjoyed (or are considering)this book then you may want to learn more of what Douglas Crockford has to say, check out his great JavaScript video series on the YUI Theater.
(Review Data Last Updated: 2008-06-08 07:42:39 EST)
06-05-08 3 2\5
(Hide Review...)  The author thinks a lot of himself
Reviewer Permalink
I had seen some good reviews of this book but if you think it is going to help you improve your javascript coding a lot think again.

The author starts out telling you how he is the only author that can tell you how to program in javascript - and everyone else is bad.

It does go through what the author considers the "good parts" of javascript and how to use them. He does show some examples as well. I didn't find the examples very compelling. A lot of the good techniques were just showing how to use a small function the author wrote - and most of these I thought would be of limited use.

I did find the appendixes on the "bad parts" to be interesting and useful. I am primarily a java programmer and I never knew that I should not be using == in javascript.

There are some useful parts to this book but I found it to have a lot of fill for such a small book and not a lot of real value.
(Review Data Last Updated: 2008-06-08 07:42:39 EST)
06-03-08 5 (NA)
(Hide Review...)  Finally, another good book about JavaScript
Reviewer Permalink
JavaScript: The Definitive Guide has been, for years, the only really good JavaScript book available. It's amazing, since JavaScript is the world's most popular language. Nearly every computer has it.

JavaScript: The Good Parts is well written and terse. I'm an experienced programmer, and have worked with JavaScript for some time now, so I don't know how well it would work for an amateur, but I suspect any programmer that has no JavaScript experience would do very well to read this book first and keep The Definitive Guide as a secondary reference, especially when reading someone else's JavaScript.

I rely heavily on the YUI libraries that Crockford's company puts out, and on Crockford's JSlint.com utility. Put together with the advice in this book, and JavaScript shines as a very nice language.
(Review Data Last Updated: 2008-06-06 07:46:35 EST)
06-01-08 5 2\3
(Hide Review...)  Thinking in Javascript
Reviewer Permalink
This book is for Javascript programmers who have perhaps been at the novice level and now wish to jump up to an intermediate understanding of the language. The language is small but unconventional, and this book tries to help you get your arms around the meatier parts of Javascript. The book tries to get you thinking in Javascript. The author shows you the components of the language and then shows you ways of putting those components together that say something about the design of the language overall. Then, you can go on to designing your own solutions. This is not a reference book and it is not certainly not exhaustive in its discussion of Javascript and its quirks. Instead, this book just contains the things that are really important. It is a rather small book, but it is very clear and illustrative in the concepts that it does cover, and the included examples are complete solutions, not just a line of code here or there. The table of contents are not shown in the product description, so I present that next:

Chapter 1. Good Parts
Section 1.1. Why JavaScript?
Section 1.2. Analyzing JavaScript
Section 1.3. A Simple Testing Ground
Chapter 2. Grammar
Section 2.1. Whitespace
Section 2.2. Names
Section 2.3. Numbers
Section 2.4. Strings
Section 2.5. Statements
Section 2.6. Expressions
Section 2.7. Literals
Section 2.8. Functions
Chapter 3. Objects
Section 3.1. Object Literals
Section 3.2. Retrieval
Section 3.3. Update
Section 3.4. Reference
Section 3.5. Prototype
Section 3.6. Reflection
Section 3.7. Enumeration
Section 3.8. Delete
Section 3.9. Global Abatement
Chapter 4. Functions
Section 4.1. Function Objects
Section 4.2. Function Literal
Section 4.3. Invocation
Section 4.4. Arguments
Section 4.5. Return
Section 4.6. Exceptions
Section 4.7. Augmenting Types
Section 4.8. Recursion
Section 4.9. Scope
Section 4.10. Closure
Section 4.11. Callbacks
Section 4.12. Module
Section 4.13. Cascade
Section 4.14. Curry
Section 4.15. Memorization
Chapter 5. Inheritance
Section 5.1. Pseudoclassical
Section 5.2. Object Specifiers
Section 5.3. Prototypal
Section 5.4. Functional
Section 5.5. Parts
Chapter 6. Arrays
Section 6.1. Array Literals
Section 6.2. Length
Section 6.3. Delete
Section 6.4. Enumeration
Section 6.5. Confusion
Section 6.6. Methods
Section 6.7. Dimensions
Chapter 7. Regular Expressions
Section 7.1. An Example
Section 7.2. Construction
Section 7.3. Elements
Chapter 8. Methods
Chapter 9. Style
Chapter 10. Beautiful Features
Appendix A. Awful Parts
Appendix B. Bad Parts
Appendix C. JSLint
Appendix D. Syntax Diagrams
Appendix E. JSON

If you are new to Javascript I suggest starting with Head First JavaScript (Head First). Once you have read that book, get this book and become someone who thinks in Javascript. At the same time, get JavaScript: The Definitive Guide for the best reference on the language that is in print.
(Review Data Last Updated: 2008-06-04 08:07:45 EST)
05-17-08 5 12\12
(Hide Review...)  Beautiful book
Reviewer Permalink
This is a beautiful book.

First of all - at only 170 pages it is short. Even though some of the key points are repeated through the book it's dense with information. You don't need any JavaScript experience, but it's not a "beginning programming" book so if you haven't been programming before this is not the right book for you.

Reading this book a couple of times will give you an appreciation for the JavaScript language that you almost certainly didn't have before. It'll give you tools to write better programs that you and others will actually be able to maintain over time.

I've learned lots of little things that I maybe knew from experience, but now I _know_ and I know why.

This book will help you battle with JavaScript rather than against it.
(Review Data Last Updated: 2008-06-02 07:43:48 EST)
05-11-08 5 4\10
(Hide Review...)  Answering the WHYs in JavaScript
Reviewer Permalink
Douglas Crockford is well known for all his work in JavaScript,including numerous articles, tools, and presentations. Over time he has helped define important concepts in JavaScript, such as style, patterns, pitfalls, and generally how to write clear and maintainable JavaScript code.
This book encapsulates a lot of that. A lot of great advice is packed in this short and sweet book. It is also a pleasure to read to boot.
This is not a JavaScript reference book, but instead it is an honest overview of the language features, including the bad stuff that we need to stay clear off.
I'd recommend this book to anyone that thinks JavaScript is just another curly-brace based language.
(Review Data Last Updated: 2008-05-17 07:47:43 EST)
  
                  Reader Reviews 1 - 26 of 26                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)