Excel Bookstore
 Location:  Home» Bill Jelen Books » JavaScript » JavaScript: The Good Parts  
Other Locales
  • Canada
  • U.K.
  • USA
  • Categories
    Bill Jelen Books
    Excel Books
    Excel 2007 Books
    VBA Books
    Pivot Table Books
    Charting Books
    Access Books
    Office Books
    Holy Macro! Books
    Office Software
    Computers
    Kindle
    Related Categories
    • JavaScript
    Programming
    Web Development
    Computers & Internet
    Subjects
    • Languages & Tools
    Programming
    Computers & Internet
    Subjects
    Books
    • Software Development
    Software Design, Testing & Engineering
    Programming
    Computers & Internet
    Subjects
    • Software
    Computers & Internet
    Subjects
    Books
    • Computers & Internet: Programming: General
    General
    Archive
    Custom Stores
    Specialty Stores
    • Computers & Internet: Web Development: Programming: General
    General
    Archive
    Custom Stores
    Specialty Stores
    • Computers & Internet: Programming: Languages & Tools: General
    General
    Archive
    Custom Stores
    Specialty Stores
    • Computers & Internet: Software: General
    General
    Archive
    Custom Stores
    Specialty Stores
    • Illustrated
    Edition (format)
    Refinements
    Books
    • Paperback
    Binding (binding)
    Refinements
    Books
    • Printed Books
    Format (feature_browse-bin)
    Refinements
    Books
    Subcategories
    Languages & Tools
    Ada
    Ajax
    Assembly Language Programming
    Basic
    Borland Delphi
    C#
    CGI Programming
    CSS
    Cobol
    Compiler Design
    Compilers
    DHTML
    Debugging
    Delphi
    Fortran
    Lisp
    Prolog
    Python
    RPG
    Visual Basic Introduction
    Visual C++
    XHTML
    XML
    XSL
    Software
    Business
    Databases
    Directories
    E-mail
    Introductory Guides
    Mathematical & Statistical
    Natural Language Processing
    Optical Character Recognition
    Personal Finance
    Spreadsheets
    Voice Recognition
    Word Processors & Editors
    Paperback
    Mass Market
    Trade

    JavaScript: The Good Parts

    JavaScript: The Good Parts

    enlarge enlarge 
    Author: Douglas Crockford
    Publisher: O'Reilly Media, Inc.
    Category: Book

    List Price: $29.99
    Buy New: $18.37
    You Save: $11.62 (39%)



    New (22) Used (4) from $16.79

    Rating: 4.5 out of 5 stars 11 reviews
    Sales Rank: 2124

    Format: Illustrated
    Media: Paperback
    Pages: 170
    Number Of Items: 1
    Shipping Weight (lbs): 0.6
    Dimensions (in): 9.1 x 7 x 0.5

    ISBN: 0596517742
    Dewey Decimal Number: 005.133
    EAN: 9780596517748
    ASIN: 0596517742

    Publication Date: May 8, 2008
    Availability: Usually ships in 1-2 business days
    Shipping: International shipping available
    Condition: Brand New, Perfect Condition, Please allow 4-14 business days for delivery. 100% Money Back Guarantee, Over 1,000,000 customers served.

    Similar Items:

      • JavaScript Definitive Guide
      • High Performance Web Sites: Essential Knowledge for Front-End Engineers
      • Programming Collective Intelligence: Building Smart Web 2.0 Applications
      • Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
      • Pro JavaScript Techniques (Pro)

    Editorial Reviews:

    Product 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 highlyexpressive 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.


    Customer Reviews:   Read 6 more reviews...

    2 out of 5 stars trite and trivial   June 28, 2008
    Dave (New York, NY USA)
    2 out of 9 found this review helpful

    I have to wonder if the positive reviewers actually read much of this, it's so surface. This book will neither teach you javascript nor interest the experience programmer for more than about 15 minutes.

    The money could be much better spent on a truly useful book.



    5 out of 5 stars Wish I had this book when I first started Javascript   June 27, 2008
    Frodo Baggins (Wisconsin, United States)
    4 out of 5 found this review helpful

    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



    5 out of 5 stars Essential Read For Javascript Developers   June 19, 2008
    Daniel McKinnon (Tewksbury, MA USA)
    2 out of 3 found this review helpful

    'JavaScript: The Good Parts' is a beautiful book that is a must-buy for all Javascript developers out there. Written with brevity clearly in mind (total is only a scant 150+ pages), this book will teach you how to become a BETTER Javascript developer and know why you want to do some things one way and avoid the pitfalls of doing things the WRONG way.

    This book is all about efficiency and cleanliness. Written by one of the main developers of JSON, this book is organized smartly and craftfully. I love the fact that there isn't bloat and it's very easy to get through this book in no time at all. Does that mean you aren't getting your money's worth with this book??? HELLS NO!!

    If you want to improve your Javascript developing skillset you owe it to yourself to pick up this book, it's one of the best books on the market in this subject matter.

    ***** HIGHLY RECOMMENDED



    5 out of 5 stars Serious JavaScript programming requires strong discipline   June 16, 2008
    Foti Massimo (Savosa Switzerland)
    4 out of 6 found this review helpful

    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.


    3 out of 5 stars JavaScript: The Pretty Good Book   June 14, 2008
    Jay Link (Illinois)
    9 out of 12 found this review helpful

    I'm not sure what I thought this book would be; I guess I assumed it would be along the lines of "C Traps and Pitfalls". At times, however, it seems almost more like an essay.

    Certainly, parts of the book are worth five stars. I was especially pleased to see the author's treatment of how null, undefined, and NaN all relate to one another in unexpected ways -- something that has puzzled me in the past. It was also good to see a list of the reserved keywords, some of which I didn't know before, and concrete examples of the dangers of == and != versus === and !==.

    An unexpected treat was to read his discussions on the technical aspects and slowness of arrays, bitwise operators, and "with" statements in JavaScript, and the origins of "switch" in FORTRAN IV, and JavaScript's similarity to Lisp, despite its outward resemblance to C.

    It was also bemusing to see his example of "flight.equipment && flight.equipment.model" on page 21, as I also learned that same lesson while working on a flight-related application.

    Yet, for the head Javascript guy at Yahoo, it seems that a few things are missing. For example, while he does say on page 80 that slice() creates a shallow copy of an array, he does not make it explicitly clear that array2 = array1 will effectively create a pointer, i.e., a copy by reference. To make a truly independent copy of an array, one needs array2 = array1.slice() (no arguments necessary). This caused me a day of frustration when I first learned it.

    And was it not Yahoo themselves that determined that scripts should come at the end of a web page to improve load speed? Why is that not in here?

    We also have nothing about compression techniques.

    On the web, for free, one can read Andy King's superb 2003 article on "Optimizing JavaScript For Execution Speed". And most of the discussion on objects can be learned much more succinctly and with better examples from MDC's "Core JavaScript 1.5 Guide".

    One can learn a lot about download optimization from Dean Edwards.

    Chapter 4 (Functions) was good; Chapter 2 (Grammar) did nothing for me.

    I was also a little disappointed with Appendix B, "The Bad Parts". Most of this dealt with undisciplined programming as opposed to flaws with the language itself. E.g., "switch" statement fall-throughs are bad. Are they? If one of your people creates an unintentional fall-through, then deal with him; don't blame the language. Does Crockford also believe that firearms should be banned because of the potential of misuse, even though they have a valid purpose? How about steak knives? This is kind of like Edsger W. Dijkstra telling us that we can never use GOTO, even though it does have its place.

    Further, I've used "continue" statements effectively, albeit not so often. Maybe I'm a bad programmer?

    And then, he advises against autoincrements!! (++)

    Regarding style, the book is definitely filled with the usual O'Reilly collegiate pompousness that's often good, sometimes not-so-good.

    In summary, there are some good parts, but as a whole this is yet another pricey programming book from which I only needed 10 pages.

    If you're at the plateau of understanding that it's actually the DOM that's slow and inefficient, and that Javascript is only guilty by association, and that it's actually an elegant little language, then there's probably something in this book for you.


    Thank you for browsing ExcelBookstore.com!