JavaScript: The Good Parts: The Good Parts

JavaScript: The Good Parts: The Good Parts

by Douglas Crockford
JavaScript: The Good Parts: The Good Parts

JavaScript: The Good Parts: The Good Parts

by Douglas Crockford

eBook

$17.99  $23.99 Save 25% Current price is $17.99, Original price is $23.99. You Save 25%.

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

Related collections and offers


Overview

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

ISBN-13: 9780596554873
Publisher: O'Reilly Media, Incorporated
Publication date: 05/08/2008
Sold by: Barnes & Noble
Format: eBook
Pages: 172
Sales rank: 979,877
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
From the B&N Reads Blog

Customer Reviews