JavaScript: The Good Parts: The Good Parts

Front Cover
"O'Reilly Media, Inc.", May 8, 2008 - Computers - 172 pages
48 Reviews
Reviews aren't verified, but Google checks for and removes fake content when it's identified

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.


What people are saying - Write a review

User ratings

5 stars
4 stars
3 stars
2 stars
1 star

Reviews aren't verified, but Google checks for and removes fake content when it's identified

LibraryThing Review

User Review  - wyclif - LibraryThing

An essential reference by Douglas Crockford, the programmer who has worked to popularise both the JSON data format and the JavaScript language. With that kind of background Crockford has become an ... Read full review

LibraryThing Review

User Review  - encephalical - LibraryThing

I'd been meaning to read this for years and finally picked up a copy in late 2019, 11 years after it came out. I'd picked up some JavaScript here and there and have been using JSON since it exploded ... Read full review

All 10 reviews »


Chapter 1 Good Parts
Chapter 2 Grammar
Chapter 3 Objects
Chapter 4 Functions
Chapter 5 Inheritance
Chapter 6 Arrays
Chapter 7 Regular Expressions
Chapter 8 Methods
Chapter 10 Beautiful Features
Appendix A Awful Parts
Appendix B Bad Parts
Appendix C JSLint
Appendix D Syntax Diagrams
Appendix E JSON

Chapter 9 Style

Other editions - View all

Common terms and phrases

Bibliographic information