Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

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 scrapes away these bad features to reveal a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole-a subset you can use to create truly extensible and efficient code. Considered the JavaScript expert by many people in the development community, author Douglas Crockford identifies the abundance of good ideas that make JavaScript an outstanding object-oriented programming language-ideas such as functions, loose typing, dynamic objects, and an expressive object literal notation. Unfortunately, these good ideas are mixed in with bad and downright awful ideas, like a programming model based on global variables. When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. In JavaScript: The Good Parts, Crockford finally digs through the steaming pile of good intentions and blunders to give you a detailed look at all the genuinely elegant parts of JavaScript, including:

  • Syntax

  • Objects

  • Functions

  • Inheritance

  • Arrays

  • Regular expressions

  • Methods

  • Style

  • Beautiful features

The real beauty? As you move ahead with the subset of JavaScript that this book presents, you'll also sidestep the need to unlearn all the bad parts. Of course, if you want to find out more about the bad parts and how to use them badly, simply consult any other JavaScript book.

With JavaScript: The Good Parts, you'll discover a beautiful, elegant, lightweight and highly expressive language that lets you create effective code, whether you're managing object libraries or just trying to get Ajax to run fast. If you develop sites or applications for the Web, this book is an absolute must.

Subscriber Reviews

Average Rating: 4.59375 out of 5 rating Based on 64 Ratings

"Awesome Book" - by Matthew.McKnight on 14-MAR-2014
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Essential read for any would-be web developer or someone looking to brush up on their skills.
Report as Inappropriate

"Deep Understanding of JavaScript" - by Anonymous on 11-NOV-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book is for knowing the JavaScript. It is purely explaining the language and mentions the good and bad parts of the language. I think this book should evolve along with the advance of JavaScript in the coming years.
Report as Inappropriate

"Terse, Honest, and Efficient" - by KGar on 29-JUL-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
"JavaScript: The Good Parts" is a somewhat terse read; fortunately, in that terseness, the book is incredibly efficient at defining a safer, smarter way to use the JavaScript programming language--without wasting the reader's time. On the other hand, since there are not a lot of examples or exercises included with the book, the topics are still somewhat nebulous until the reader goes and tries them out elsewhere. "JavaScript: The Good Parts" would best serve as a handy reference book while one is coding.
Report as Inappropriate

"Getting outdated - now 5 years old" - by Dennis on 07-JUN-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I suppose if you want to write javascript that will run in ancient browsers, this book would be fine.  However, modern browsers now support most or all of the ECMAScript version 5 updates.  It's time for a new edition that looks at the new parts.
Report as Inappropriate

"Changed the way I write software" - by Bruce Van Horn on 13-MAY-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I'm sure others have said it already.  If you don't know javascript, start with this book and ignore the others as they will only lead you astray.  I've been able to take the ideas I learned from Crockfordian JavaScript to make me a more adept C# programmer and a better teacher.
Report as Inappropriate

Table of Contents

 Index

Extras

The publisher has provided additional content related to this title.


Description
Content

Visit the catalog page for JavaScript: The Good Parts

  • Catalog Page

Visit the errata page for JavaScript: The Good Parts

  • Errata

Download the supplemental electronic content for JavaScript: The Good Parts

  • Supplemental Content