Copyright; Table of Contents; Preface; About This Book; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Beautiful Mixins; Classical Inheritance; Prototypes; Mixins; The Basics; The Use Case; Classic Mixins; The extend Function; Functional Mixins; Adding Options; Adding Caching; Advice; Wrapup; eval and Domain-Specific Languages; What About "eval Is Evil"?; History and Interface; Performance; Common Uses; A Template Compiler; Speed; Mixing Languages; Dependencies and Scopes; Debugging Generated Code; Binary Pattern Matches; Closing Thoughts
متن يادداشت
Adding Tasks to the Event LoopJavaScript Is...; JavaScript Is Dynamic; JavaScript Can Be Static; JavaScript Is Functional; JavaScript Does Everything; Coding Beyond Logic; 0. The Basement; 1. Quine's Paradox; 2. The Conjecture; 3. Peer Review; JavaScript Is Cutieful; All This Loose Beauty; The Absurdity of Dalí; Dalí's JavaScript; Is This Beauty Just Ugly?; An Unfortunate Necessity; The Beauty Is in the Madness; Let's Have a Wee Look at map; Hello, thisArg; Okay! So That's a Bunch of Stuff I Already Knew About [].map-Now What?; calling All Cars; Number; Now I Know Everything; Wild
متن يادداشت
An Imperative, Dynamic ProposalThe Paradox of Choice; Globalcommunicationscript; Math Expression Parser and Evaluator; Lexical Analysis and Tokens; Syntax Parser and Syntax Tree; Tree Walker and Expression Evaluator; Final Words; Evolution; Backbone; New Possibilities; Error Handling; Assume Your Code Will Fail; Throwing Errors; When to Throw Errors; Types of Errors; Custom Errors; Handling Errors; Global Error Handling in Browsers; Global Error Handling in Node.js; Summary; The Node.js Event Loop; Event-Driven Programming; Asynchronous, Nonblocking I/O; Concurrency
متن يادداشت
Functional JavaScriptFunctional Programming; Functional JavaScript; Objects; Now What?; Progress; Index
متن يادداشت
How to Draw a BunnyWhat Is a Rabbit?; What Is a Bunny?; What Does This Have to Do with JavaScript?; With So Much Variation, Which Way Is Correct?; How Does This Affect the Classroom?; Is This Art? And Why Does That Matter?; What Does This Look Like?; What Did I Just Read?; Too Much Rope, or JavaScript for Teams; Know Your Audience; Stupid Good; Keep It Classy; Style Rules; Evolution of Code; Conclusion; Hacking JavaScript Constructors for Model Harmony; Doppelgangers; Miniature Models of Factories; Constructor Identity Crisis; Making It Scale; Conclusion; One World, One Language