JavaScript: The Good Parts: The Good Parts

· "O'Reilly Media, Inc."
4.4
261 reviews
Ebook
172
Pages
Eligible

About this ebook

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.

Ratings and reviews

4.4
261 reviews
Giant Moose
July 26, 2013
Crockford yanks me out of my biased predisposition towards JavaScript and doesn't leave me anything to hold onto. My first exposure to the language was as a toy for high school kids to animate ugly webpages. This book shows the inherent power and elegance that resides in a subset of JavaScript that I would have never seen if I read other texts. Furthermore, the author prepares the reader to write in such a way as to protect projects from future changes to both browsers and the JavaScript language itself. Definitely recommend picking this one up as your first book on the subject.
33 people found this review helpful
Did you find this helpful?
A Google user
October 13, 2011
JavaScript is a flawed language, but it definitely has good parts. (The good parts are very good.) Douglas Crockford gives an excellent overview of the parts of the language that you should become familiar with, while giving you some warnings about the parts you should stay away from.
1 person found this review helpful
Did you find this helpful?
A Google user
December 21, 2010
Reveals many pitfalls of using concepts from languages like Java in Javascript. A must read for people with some other computer language background before they start using Javascript for front-end development.
Did you find this helpful?

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.