JavaScript: The Good Parts: The Good Parts

JavaScript: The Good Parts: The Good Parts

by Douglas Crockford

NOOK Book(eBook)

$13.49 $23.99 Save 44% Current price is $13.49, Original price is $23.99. You Save 44%.
View All Available Formats & Editions

Available on Compatible NOOK Devices and the free NOOK Apps.
WANT A NOOK?  Explore Now

Product Details

ISBN-13: 9780596554873
Publisher: O'Reilly Media, Incorporated
Publication date: 05/08/2008
Sold by: Barnes & Noble
Format: NOOK Book
Pages: 172
Sales rank: 434,515
File size: 2 MB

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.

Table of Contents

Preface     xi
Good Parts     1
Why JavaScript?     2
Analyzing JavaScript     3
A Simple Testing Ground     4
Grammar     5
Whitespace     5
Names     6
Numbers     7
Strings     8
Statements     10
Expressions     15
Literals     17
Functions     19
Objects     20
Object Literals     20
Retrieval     21
Update     22
Reference     22
Prototype     22
Reflection     23
Enumeration     24
Delete     24
Global Abatement     25
Functions     26
Function Objects     26
Function Literal     27
Invocation     27
Arguments     31
Return     31
Exceptions     32
Augmenting Types     32
Recursion     34
Scope     36
Closure     37
Callbacks     40
Module     40
Cascade     42
Curry     43
Memoization     44
Inheritance     46
Pseudoclassical     47
Object Specifiers     50
Prototypal     50
Functional     52
Parts     55
Arrays     58
Array Literals     58
Length     59
Delete     60
Enumeration     60
Confusion     61
Methods     62
Dimensions     63
Regular Expressions     65
An Example     66
Construction     70
Elements     72
Methods     78
Style     94
Beautiful Features     98
Awful Parts     101
Bad Parts     109
JSLint     115
Syntax Diagrams     125
JSON     136
Index     147

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

JavaScript: The Good Parts: The Good Parts 3.5 out of 5 based on 0 ratings. 20 reviews.
Anonymous More than 1 year ago
I really enjoyed reading this book. It has really helped me settle on some structures that I stick to when I develop now. The only reason I did not give this book 5 stars is because alot of the material is very opinionated. Also, I am a strong supporter of the continue statement. I have absolutely no idea why it would fall in the "bad parts" category.
benedetto.fiorelli on LibraryThing 5 months ago
some of the topics touched by this book are very important but it's a pity that at times the narration is very very dry, it becomes like a conversation between the author and a reader that needs to know a priori what the author is going to point or at least have a feeling about it. Examples are not enough and they are outside of a context or story so it's fairly difficult to get the whole picture unless you let yourself drive by an illusion of knowledge. Maybe a design patterns approach, at least for some topics, showing alternatives and forces and contexts, would have helped. But is also true that the book would have been much much bigger and maybe too expensive.For example if you want to learn about closures, callbacks and other patterns in practice, there are better resouces, for example Stoyan Stefanov books. Of course this book has the merit to be one of the first to focus on design issues and reading it will not be bad anyway.And the book is designed to cover only the ECMA specification, not the various practical uses of the language in contexts like browsers, scripting engines, etc. So, concluding, this book shall be good for Javascript experts that are just looking for a formalization of important core language best practices or for those that have followed for long time the wrong directions (as the author says too many wrong books have been written on javascript) and want to steer in the right way, knowing that maybe they will also need to look for other resources. But is not the best for the wider audience of programmers that want to learn Javascript the right way and in its most practical applications.
lyzadanger on LibraryThing 5 months ago
Crockford, the irreverent guru, takes us on a whirlwind tour de force through the parts of JavaScript that matter. Condensed and pithy, this is a must-read guidebook for even seasoned web devs. Finally. I understand closures. Finally.
tlockney on LibraryThing 5 months ago
This along with JavaScript: The Definitive Guide are the two must read books for any JS programmers out there. Crockford lays out in very clear terms what's good (and bad) about JS in it's current form. His guidelines for how to use it effectively seem very solid based on my experiences.It helps that you can easily read through the majority of this book in a couple hours. But it's also one to keep around and flip through every so often when you need a refresher.
Redsaz More than 1 year ago
For programmers of other programming languages, C/C++ or Java especially, that want to rapidly learn quality, effective JavaScript should read this book. The focus is on the JavaScript language itself, with very little mention of browser-specific details like DOM. It is certainly a no nonsense book; the terseness is a blessing. You'll begin learning immediately on the first chapter since all of the "beginner" topics so commonly found in these books, like "What is a variable? What is a function? Why a text editor and not a word processor?" are removed. Instead you find out what the good parts and bad parts are and why, like it says on the tin. In summary: If you can program already, and need to be brought up to speed on good JavaScript style, then this book will serve you well.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
HopeH More than 1 year ago
I'm still not finished. I bought the book because I wanted to brush up on JavaScript since I took it awhile ago in school. It is FULL of great information, but it is so deep that I am buying another book to go along with it: Object-oriented JavaScript.
Anonymous More than 1 year ago
Guest More than 1 year ago
That's Crockford's approach to Javascript. I expected more. The examples were poor and he actually defends them by saying you just have to read them carefully. I think the lessons are muddled and if you're familiar with Crockford then you already know most of what's in this book.
Anonymous More than 1 year ago
Lots of fluff. Doesn't explain well. I am an experienced programmer with 30+ years experience in assembly,C, C++, Java, C#.Net, PHP, and other languages, but this book doesn't help me learn Javascript. Many page links don't work. I'm deleting this from my NOOK HD+
Guest More than 1 year ago
Often this is said as if teaching were an accomplishment of less importance and requiring less skill. But whatever skills Crockford has and whatever information/advice he has to share are completely lost in his inability to teach. This book is terse, brief to the point of obscurity, lacking in explanation, and rushing to show quick, poorly documented examples so that everyone will be impressed with his ability to 'do' even though there is no clear exposition on how all the pieces of the examples work. Having worked deeply in JavaScript for well over a decade I have discovered and utilized many of the ideas here (and was happy to find some new ones), but it is unlikely that anyone who wasn't almost continually sumberged in Javascript day-in and day-out for many years would be able to draw anything constructive out of this book.