 Best Sellers |  |
Home   JavaScript: The Good Parts | |
|  | |  | | | JavaScript: The Good Parts | | | | | | | |
List Price:
| $29.99 | |
Our Price:
| $17.99 | |
You Save:
| $12.00 (40%)
| | Shipping: | Eligible for FREE Super Saver Shipping on orders over $25. | |
*Shipping:
| |
| | | SKU:
I9780596517748 | | In Stock | | Availability:
Usually ships in 1 business days | | |
|
| | Product Promotions | |  |
| | 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.
|  |
| | Product Details | | Author: | Douglas Crockford | | Paperback: | 176 pages | | Publisher: | Yahoo Press | | Publication Date: | 2008-05 | | Language: | English | | ISBN: | 0596517742 | | Product Length: | 9.26 inches | | Product Width: | 7.01 inches | | Product Height: | 0.38 inches | | Product Weight: | 0.64 pounds | | Package Length: | 9.1 inches | | Package Width: | 6.9 inches | | Package Height: | 0.4 inches | | Package Weight: | 0.65 pounds | | Average Customer Rating: | based on 119 reviews |
|  |
| | Used and New |
| All | |
| $14.99+ $4.49 *Shipping | Used
- Good | | | $15.00+ $4.49 *Shipping | Used
- Good | | | $15.99+ $4.49 *Shipping | Used
- Acceptable | | | $16.19+ $3.99 *Shipping This item is eligible for FREE Super Saver Shipping on orders over $25. | Used
- Good | | | $16.45+ $4.49 *Shipping | Used
- Mint | | | $16.62+ $4.49 *Shipping | New | | | $16.65+ $4.49 *Shipping | New | | | $17.17+ $4.49 *Shipping | New | | | $17.99+ $3.99 *Shipping This item is eligible for FREE Super Saver Shipping on orders over $25. | New | | | $19.12+ $4.49 *Shipping | New | | | $19.13+ $4.49 *Shipping | New | | | $19.95+ $4.49 *Shipping | Used
- Mint | | | $19.95+ $4.49 *Shipping | New | | | $19.96+ $4.49 *Shipping | New | | | $19.96+ $4.49 *Shipping | Used
- Mint | | | $20.43+ $4.49 *Shipping | New | | | $21.32+ $4.49 *Shipping | Used
- Mint | | | $21.33+ $4.49 *Shipping | New | | | $21.33+ $4.49 *Shipping | Used
- Mint | | | $21.59+ $4.49 *Shipping | New | | | $21.69+ $4.49 *Shipping | Used
- Mint | | | $21.78+ $4.49 *Shipping | Used
- Mint | | | $21.86+ $4.49 *Shipping | New | | | $21.96+ $4.49 *Shipping | New | | | $22.89+ $4.49 *Shipping | New | | | $23.10+ $4.49 *Shipping | New | | | $23.32+ $4.49 *Shipping | New | | | $23.99+ $4.49 *Shipping | New | | | $24.20+ $4.49 *Shipping | New | | | $24.21+ $4.49 *Shipping | New | | | $24.31+ $4.49 *Shipping | New | | | $24.44+ $4.49 *Shipping | New | | | $24.63+ $4.49 *Shipping | New | | | $24.92+ $4.49 *Shipping | Used
- Mint | | | $24.92+ $4.49 *Shipping | New | | | $25.00+ $4.49 *Shipping | New | | | $25.38+ $4.49 *Shipping | New | | | $25.79+ $4.49 *Shipping | New | | | $26.94+ $4.49 *Shipping | New | | | $27.02+ $4.49 *Shipping | New | | | $27.22+ $4.49 *Shipping | New | | | $27.48+ $4.49 *Shipping | New | | | $29.63+ $4.49 *Shipping | New | | | $29.64+ $4.49 *Shipping | New | | | $29.79+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $30.77+ $4.49 *Shipping | Used
- VeryGood | | | $31.27+ $4.49 *Shipping | Used
- VeryGood | | | $31.77+ $4.49 *Shipping | New | | | $32.07+ $4.49 *Shipping | Used
- Mint | | | $32.15+ $4.49 *Shipping | New | | | $32.49+ $4.49 *Shipping | New | | | $32.81+ $4.49 *Shipping | Used
- Mint | | | $35.26+ $4.49 *Shipping | New | | | $36.78+ $4.49 *Shipping | New | | | $37.19+ $4.49 *Shipping | Used
- Mint | | | $41.65+ $4.49 *Shipping | New | | | $45.88+ $4.49 *Shipping | New | | | $49.07+ $4.49 *Shipping | Used
- Mint | | | $1,000.00+ $4.49 *Shipping | Used
- Mint | |
| New | |
| $16.62+ $4.49 *Shipping | New | | | $16.65+ $4.49 *Shipping | New | | | $17.17+ $4.49 *Shipping | New | | | $17.99+ $3.99 *Shipping This item is eligible for FREE Super Saver Shipping on orders over $25. | New | | | $19.12+ $4.49 *Shipping | New | | | $19.13+ $4.49 *Shipping | New | | | $19.95+ $4.49 *Shipping | New | | | $19.96+ $4.49 *Shipping | New | | | $20.43+ $4.49 *Shipping | New | | | $21.33+ $4.49 *Shipping | New | | | $21.59+ $4.49 *Shipping | New | | | $21.86+ $4.49 *Shipping | New | | | $21.96+ $4.49 *Shipping | New | | | $22.89+ $4.49 *Shipping | New | | | $23.10+ $4.49 *Shipping | New | | | $23.32+ $4.49 *Shipping | New | | | $23.99+ $4.49 *Shipping | New | | | $24.20+ $4.49 *Shipping | New | | | $24.21+ $4.49 *Shipping | New | | | $24.31+ $4.49 *Shipping | New | | | $24.44+ $4.49 *Shipping | New | | | $24.63+ $4.49 *Shipping | New | | | $24.92+ $4.49 *Shipping | New | | | $25.00+ $4.49 *Shipping | New | | | $25.38+ $4.49 *Shipping | New | | | $25.79+ $4.49 *Shipping | New | | | $26.94+ $4.49 *Shipping | New | | | $27.02+ $4.49 *Shipping | New | | | $27.22+ $4.49 *Shipping | New | | | $27.48+ $4.49 *Shipping | New | | | $29.63+ $4.49 *Shipping | New | | | $29.64+ $4.49 *Shipping | New | | | $29.79+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $29.99+ $4.49 *Shipping | New | | | $31.77+ $4.49 *Shipping | New | | | $32.15+ $4.49 *Shipping | New | | | $32.49+ $4.49 *Shipping | New | | | $35.26+ $4.49 *Shipping | New | | | $36.78+ $4.49 *Shipping | New | | | $41.65+ $4.49 *Shipping | New | | | $45.88+ $4.49 *Shipping | New | |
| Used | |
| $14.99+ $4.49 *Shipping | Used
- Good | | | $15.00+ $4.49 *Shipping | Used
- Good | | | $15.99+ $4.49 *Shipping | Used
- Acceptable | | | $16.19+ $3.99 *Shipping This item is eligible for FREE Super Saver Shipping on orders over $25. | Used
- Good | | | $16.45+ $4.49 *Shipping | Used
- Mint | | | $19.95+ $4.49 *Shipping | Used
- Mint | | | $19.96+ $4.49 *Shipping | Used
- Mint | | | $21.32+ $4.49 *Shipping | Used
- Mint | | | $21.33+ $4.49 *Shipping | Used
- Mint | | | $21.69+ $4.49 *Shipping | Used
- Mint | | | $21.78+ $4.49 *Shipping | Used
- Mint | | | $24.92+ $4.49 *Shipping | Used
- Mint | | | $30.77+ $4.49 *Shipping | Used
- VeryGood | | | $31.27+ $4.49 *Shipping | Used
- VeryGood | | | $32.07+ $4.49 *Shipping | Used
- Mint | | | $32.81+ $4.49 *Shipping | Used
- Mint | | | $37.19+ $4.49 *Shipping | Used
- Mint | | | $49.07+ $4.49 *Shipping | Used
- Mint | | | $1,000.00+ $4.49 *Shipping | Used
- Mint | |
|  |
| | Customer Reviews | Average Customer Review: ( 119 customer reviews )
Write an online review and share your thoughts with other customers.
Most Helpful Customer Reviews
342 of 349 found the following review helpful:
Wish I had this book when I first started Javascript Jun 27, 2008
By Frodo Baggins 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
89 of 94 found the following review helpful:
Beautiful book May 17, 2008
By Ask Bjørn Hansen 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.
44 of 46 found the following review helpful:
Some good data, but scattered and inconsistent, unclear who it's written for. Jan 20, 2011
By Brian Sharp 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.
Chapters 3 and 4 were the most useful parts of the book for me: the section on objects and functions, data scoping and closure, which really takes a new way of thinking if, like me, you have a lot of experience with languages without closure and anonymous functions and the like. Crockford does a good job of explaining this and giving relevant examples. This section was 20% of the book and was the only section I found really useful.
Chapter 5 covers inheritance. He presents two methods, one using new and constructors like one of the languages I'm more used to, and gives a couple reasons to avoid this, and then digs into the prototypal method, which is unfamiliar to me. The problem is that he uses totally abstract examples here - classes representing animals and methods that return their names or the noises they make - and it was very hard for me to relate it to any actual application, and since the prototypal style is a fundamentally different paradigm I don't feel like I really grasped it from his writing. Since he builds a framework of extension methods throughout the book, once I started to lost his train of logic I was utterly lost. And the "meta" nature of javascript, assigning functions to methods that return other functions that wrap functions, I found it easy to get lost.
Chapter 6 covers arrays. If you've used scripting languages this stuff is very simplistic, a stark change from Chapter 5, which is quite sophisticated. Again, my point here - I don't know who would simultaneously understand Chapter 5 and still find anything in Chapter 6 useful.
Chapter 7 is a significant change of direction; it's a long chapter on regular expressions which I skimmed very quickly since I know them from using perl. This part seemed odd, since regular expressions are common to several languages, and there's nothing particularly unique about javascript's usage of them. It felt a bit misplaced in this book. Certainly they're an important part of the language, but again made me wonder: who's the book for?
Chapter 8 is a reference for core API functionality and his extension methods; this feels like stuff I'd just google while coding, not terribly valuable to me personally.
Chapter 9 is a diversion on coding style, and felt wildly out of place and kind of insulting: if this book is for a seasoned programmer this is just going to trigger unpleasant flashbacks to arguments you had back when you were a junior programmer. If you're a new programmer and this stuff is news to you, other chapters in the book are going to be utterly incomprehensible to you.
Chapter 10, "The Beautiful Parts," is all of a page long, but a nice summary of the good aspects of the language.
Appendices A and B cover some of the "Awful & Bad Parts" of javascript in detail; this was the second-most interesting part of the book to me, though it's brief and you've picked it up if you read the rest of the book. Still, definitely value here. Though worth noting: he inserts some more editorializing here, ala Chapter 9 - he calls out some things that aren't specific to javascript, like switch statement fallthrough, as bad parts, which I found annoying. Stick to aspects unique to javascript and point out real dangers instead of offering advice on very broad aspects of coding style, I kept thinking.
Appendix C is about JSLint, the lint for javascript. It was useful only in the sense that I didn't know JSLint existed, and now I do, but then he gives a long swath of what amounts to JSLint documentation, which I have to imagine exists on the JSLint site, and felt like filler.
Appendix D is about JSON and just some reference information about the format. Maybe useful, but no authorial insight, just docs.
Overall, glad I read it, but I was pretty underwhelmed given the generally great reviews of the book on here.
38 of 41 found the following review helpful:
Serious JavaScript programming requires strong discipline Jun 16, 2008
By Foti Massimo 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.
9 of 9 found the following review helpful:
Approachable, no non-sense, thrilling to read, an excellent reference, proof that great books don't have to be huge Jun 07, 2008
By Adam Kahtava 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.
See all 119 customer reviews on Amazon.com
|  |
| |
| |  | |  |
|
 Recently Viewed INFO LIBRARY your place to search for information! In InfoLibrary.com you’ll find:Detailed info on research and references for anything of educational or recreational interest. Search for informational how to videos and entertainment media. Info on State Public Libraries and foreign Libraries. Search local, federal and state Public Records including mortgages, property records, criminal records, civil court filings, sex offenders, birth certificates, death certificates, marriage certificates, unclaimed property, professional licenses, genealogy, and more. Search info and buy reference material on world and national literature of any written subject or work of art. Browse for info on any books, text books, authors, manuals, reference material, videos, self-help, entertainment, history, sports, food, jobs, cinema, homework help, etc. Find latest info on state by state Colleges and Universities in the United States. Search Info Library to and get the latest music or video of your favorite movie or recording artist. Find great deals and discounts on books, manuals and informational material through the site. Use our Info Library Search Engine tool to locate detailed and specific information on your subject of interest. Easily find most popular books and best sellers. Info Library is your best place to find information, knowledge and know-how on any subject, interest, or field of study. Visit InfoLibrary.com: Your site for info, education, knowledge and wisdom at you fingertips! Info Library: Your information search website!
|  You may also like ... |