Select your rental length

Starts: Today
Ends:

Rent From: $4.65

Deliver to your Kindle or other device

Enter a promotion code
or gift card
 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

JavaScript: The Good Parts: The Good Parts [Kindle Edition]

Douglas Crockford
4.2 out of 5 stars  See all reviews (307 customer reviews)

Digital List Price: $23.99 What's this?
Print List Price: $29.99
Rent From: $4.65 or Buy Price: $9.60
Save up to: $25.34 (84%) You Save: $20.39 (68%)

  • Print ISBN-10: 0596517742
  • Print ISBN-13: 978-0596517748
  • Edition: 1

Formats

Amazon Price New from Used from
 
Kindle Edition
Rent from
$9.60
$4.65
 
Paperback $17.39  
Unknown Binding --  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Book Description

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.



Editorial Reviews

Book Description

Unearthing the Excellence in JavaScript

About the Author

Douglas Crockford is a Senior JavaScript Architect at Yahoo!, well known for introducing and maintaining the JSON (JavaScript Object Notation) format. He's a regular speaker at conferences on advanced JavaScript topics, and serves on the ECMAScript committee.


Product Details

  • File Size: 1152 KB
  • Print Length: 176 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: Yahoo Press; 1 edition (December 17, 2008)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0026OR2ZY
  • Text-to-Speech: Enabled
  • X-Ray:
  • Lending: Enabled
  • Amazon Best Sellers Rank: #15,349 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


Customer Reviews

Most Helpful Customer Reviews
501 of 512 people found the following review helpful
Format:Paperback|Verified Purchase
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).
Read more ›
Was this review helpful to you?
163 of 180 people found the following review helpful
Format:Kindle Edition|Verified Purchase
I'm a long-time C, C++, and Java programmer (videogames, predominantly) learning Javascript to do some web work, so I picked up this book because the reviews were good and the notion appealed to me - learn the subset of this rather sloppy language that you can use as a good language.

My TL;DR version of the review: this book is a hodgepodge of different information about the language, but some of it is so complicated it'll go immediately over the heads of new programmers, and then some of it is so mundane (even pedantic, talking about very specific aspects of coding styles) it felt goofy and out of place. It seems to me that any specific individual reading this book won't really find more than one or two chapters very relevant. I give it 3 stars because the useful parts were useful to me, but I skimmed and ignored 80+% of the book.

Crockford's writing is personable and clear, and the book's organization is straightforward. Here's my chapter-by-chapter breakdown. Note that this is all from my perspective, what I personally found useful or not, but my point is, while other readers will certainly disagree with me about what was useful, I have trouble imagining any one person finding more than about 20% of the book useful.

Chapter 1 is an introduction and high-level explanation of the point of the book.

Chapter 2 covers basic grammar and the likes, which was helpful though it's not aimed at any particular familiarity with other languages so it's trying to be comprehensive, which meant that as an experienced programmer in other languages I had to skim it and just look for differences with what I'm already used to.
Read more ›
Was this review helpful to you?
114 of 125 people found the following review helpful
5.0 out of 5 stars Beautiful book May 16, 2008
Format:Paperback|Verified Purchase
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.
Was this review helpful to you?
49 of 54 people found the following review helpful
Format:Paperback|Verified Purchase
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.
Comment | 
Was this review helpful to you?
27 of 30 people found the following review helpful
3.0 out of 5 stars A few gems, but too much filler November 7, 2009
Format:Paperback|Verified Purchase
This book has some good parts, even some great parts. Many parts of Chapters 3, 4, and 5 are very insightful, and might revolutionize how you think about Javascript, even programming in general. (Unless you come from a Lisp or functional programming background, in which case the insights will be old hat to you).

Unfortunately, the book as a whole seems to suffer from an identity crisis, or a lack of effort by the author to craft a consistent work, or perhaps a struggle between the author and publisher. Whatever the cause, it seriously compromised the quality and integrity of what could have been an amazing book. Instead of the tome of grand enlightenment that it should have been, we are left with a few gems buried amidst mounds of useless filler material.

The introduction explains that this is not a book for beginners, which is true, because beginning programmers would find most of Chapters 3, 4, and 5 to be completely impenetrable. Even experienced programmers may find them difficult to grasp. As the introduction says, this book is "small but dense," which is a nicer way of saying that it throws advanced techniques and code samples at the reader without sufficient explanation.

The introduction also explains that this is not a reference book, which is also true, because it does not describe the DOM at all, nor even list all the standard methods and functions built into Javascript. The introduction suggests that the reader should go look on the internet to find such references, which you'll certainly need to do if you plan to actually use Javascript for anything.
Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars A must read for developers working with JavaScript
A must read - for every developer who use javascript in day to day work.
You will read all about - hoisting and closures. And how to use closures.
Published 2 hours ago by Thomas Riis
5.0 out of 5 stars Excellent book.
A must-have for any JS developer, or anyone who wants to improve their JavaScript
Published 8 days ago by Michael Musgrove
5.0 out of 5 stars A good book!
A handy tool for referencing methods... This book has been a huge help from time to time when I got stuck on some problem and just needed a jog of my memory to get a programming... Read more
Published 25 days ago by whitebeard
5.0 out of 5 stars Best JavaScript book
Wow the best book I have read on javascript
Published 1 month ago by sidhartha
5.0 out of 5 stars No, really... there are some good parts
Javascript grows on you... like mould or fungus. This book lets you know which are the eatable bits while the rest is poison.
Published 1 month ago by Amazon Customer
5.0 out of 5 stars A Must Read for Any Serious JavaScript Developer
An excellent tour of JavaScript from one of its most respected experts. The information is clear and concise. Read more
Published 1 month ago by M. Kane
5.0 out of 5 stars Very Helpful
Excellent book for getting one's head around Javascript--especially for someone with familiarity with other languages.
Published 1 month ago by Scott J Edmondson
5.0 out of 5 stars A great book on Javascript breaking down the language into the ...
A great book on Javascript breaking down the language into the parts you should be using and those best avoided. Read more
Published 1 month ago by Bobkat
5.0 out of 5 stars Worthwhile Read for programmers!
Great read, really helped me pick up javascript. I had alot of programming experience before reading this book and it helped me pick up JS without knowing it very quickly.
Published 2 months ago by Robert Dunlevie
1.0 out of 5 stars save your money
As you scroll through the HTML related books, you will notice this same review is posted for several books proportioning to provide information in a user friendly format on... Read more
Published 2 months ago by George McDuffee
Search Customer Reviews
Search these reviews only

More About the Author

Douglas Crockford is a Senior JavaScript Architect at Yahoo!, well known for introducing and maintaining the JSON (JavaScript Object Notation) format. He's a regular speaker at conferences on advanced JavaScript topics, and serves on the ECMAScript committee.



Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Look for Similar Items by Category