JavaScript: The Good Parts
33%
off

JavaScript: The Good Parts

4.23 (6,483 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 3 business days


When will my order arrive?

Available. Expected delivery to the United States in 8-11 business days.


Not ordering to the United States? Click here.
Expected to be delivered to the United States by Christmas Expected to be delivered to the United States by Christmas

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.
show more

Product details

  • Paperback | 180 pages
  • 178.05 x 235.2 x 9.65mm | 290.3g
  • Sebastopol, United States
  • English
  • w. figs.
  • 0596517742
  • 9780596517748
  • 120,657

Table of contents

Inhaltsverzeichnis
Preface
1. Good Parts
Why JavaScript?
Analyzing JavaScript
A Simple Testing Ground
2. Grammar
Whitespace
Names
Numbers
Strings
Statements
Expressions
Literals
Functions
3. Objects
Object Literals
Retrieval
Update
Reference
Prototype
Reflection
Enumeration
Delete
Global Abatement
4. Functions
Function Objects
Function Literal
Invocation
Arguments
Return
Exceptions
Augmenting Types
Recursion
Scope
Closure
Callbacks
Module
Cascade
Curry
Memoization
5. Inheritance
Pseudoclassical
Object Specifiers
Prototypal
Functional
Parts
6. Arrays
Array Literals
Length
Delete
Enumeration
Confusion
Methods
Dimensions
7. Regular Expressions
An Example
Construction
Elements
8. Methods
9. Style
10. Beautiful Features
A. Awful Parts
B. Bad Parts
C. JSLint
D. Syntax Diagrams
E. JSON
Index
show more

Review Text

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:

SyntaxObjectsFunctionsInheritanceArraysRegular expressionsMethodsStyleBeautiful 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.
show more

About Douglas Crockford

Douglas Crockford is a Senior JavaScript Architect at Yahoo!. He is the maintainer of the JSON format, and a regular speaker at conferences on advanced JavaScript topic. He is also on the JavaScript 2.0 committee at ECMA.
show more

Rating details

6,483 ratings
4.23 out of 5 stars
5 42% (2,733)
4 42% (2,708)
3 14% (876)
2 2% (138)
1 0% (28)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X