JavaScript: The Good Parts View Larger Image | Douglas Crockford O'Reilly Media, Paperback, Published May 2008, 250 pages, ISBN 0596517742 | List Price: $29.99 Our Price: $18.50 You Save: $11.49 (38% Off)
| | | Availability: In-Stock |
Be the First to Write a Review and tell the world about this title!Books on similar topics, in best-seller order: Books from the same publisher, in best-seller order:
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 offers a detailed explanation of
the features that make JavaScript an outstanding object-oriented programming
language, and warns you about the bad parts.
In the process, JavaScript: The Good Parts defines a subset of JavaScript that's
more reliable, readable, and maintainable than the language as a whole. Author
Douglas Crockford, a member of JavaScript 2.0 committee at ECMA, is considered
by many people in the development community to be the JavaScript expert.
A beautiful, elegant, lightweight and highly expressive language lies buried
under a steaming pile of good intentions and blunders, he explains. The very
good ideas include functions, loose typing, dynamic objects, and an expressive
object literal notation. Awful ideas include a programming model based on global
variables. With JavaScript: The Good Parts, you can release this elegant programming
language from its old shell, and create more maintainable, extensible, and efficient
code.
The book's topics include:
Syntax
Objects
Functions
Inheritance
Arrays
Regular expressions
Methods
Style
Beautiful features
Appendices summarize JavaScript's bad parts and awful parts. But the greatest
benefit of studying the good parts is that you can avoid the need to unlearn
the bad parts. If you want to learn more about the bad parts and how to use
them badly, consult any other JavaScript book.
JavaScript is the language of the Web -- the only language found in all browsers
-- so avoiding it altogether is not an alternative. But, whether you're managing
object libraries or just trying to get Ajax to run fast, Crockford's guidance
in JavaScript: The Good Parts will help you create truly effective JavaScript
code.
Table of Contents
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
|