JavaScript: The Good Parts. The Good Parts - Helion
ISBN: 978-05-965-5487-3
stron: 172, Format: ebook
Data wydania: 2008-05-08
Księgarnia: Helion
Cena książki: 92,65 zł (poprzednio: 107,73 zł)
Oszczędzasz: 14% (-15,08 zł)
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.
Osoby które kupowały "JavaScript: The Good Parts. The Good Parts", wybierały także:
- D3.js w akcji 67,42 zł, (20,90 zł -69%)
- Tablice informatyczne. Node.js 16,86 zł, (5,90 zł -65%)
- Testowanie aplikacji w React.js. Kurs video. Praca z biblioteką Jest.js 69,00 zł, (27,60 zł -60%)
- JavaScript. Kurs video. Programowanie funkcyjne i reaktywne 98,98 zł, (39,59 zł -60%)
- AngularJS. Kurs video. Poziom pierwszy. Tworzenie aplikacji 119,00 zł, (47,60 zł -60%)
Spis treści
JavaScript: The Good Parts. The Good Parts eBook -- spis treści
- JavaScript: The Good Parts
- Dedication
- A Note Regarding Supplemental Files
- Preface
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 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
- The Method Invocation Pattern
- The Function Invocation Pattern
- The Constructor Invocation Pattern
- The Apply Invocation Pattern
- 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
- Regexp Choice
- Regexp Sequence
- Regexp Factor
- Regexp Escape
- Regexp Group
- Regexp Class
- Regexp Class Escape
- Regexp Quantifier
- 8. Methods
- 9. Style
- 10. Beautiful Features
- A. Awful Parts
- Global Variables
- Scope
- Semicolon Insertion
- Reserved Words
- Unicode
- typeof
- parseInt
- +
- Floating Point
- NaN
- Phony Arrays
- Falsy Values
- hasOwnProperty
- Object
- B. Bad Parts
- ==
- with Statement
- eval
- continue Statement
- switch Fall Through
- Block-less Statements
- ++
- Bitwise Operators
- The function Statement Versus the function Expression
- Typed Wrappers
- new
- void
- C. JSLint
- Undefined Variables and Functions
- Members
- Options
- Semicolon
- Line Breaking
- Comma
- Required Blocks
- Forbidden Blocks
- Expression Statements
- for in Statement
- switch Statement
- var Statement
- with Statement
- =
- == and !=
- Labels
- Unreachable Code
- Confusing Pluses and Minuses
- ++ and
- Bitwise Operators
- eval Is Evil
- void
- Regular Expressions
- Constructors and new
- Not Looked For
- HTML
- JSON
- Report
- D. Syntax Diagrams
- E. JSON
- JSON Syntax
- Using JSON Securely
- A JSON Parser
- Index
- About the Author
- Colophon
- Copyright