Book Description
A long pull of functions, combinators, & decorators, written in modern JavaScript.
"Spent the afternoon reading @raganwald's JavaScript Allongé, the Six Edition. Highly recommended. Let the refactoring begin!" - Marcus Vorwaller
"I think it's one of the best tech books I've read since Sedgewick's Algorithms in C." - Andrey Sidorov
"Your explanation of closures in JavaScript Allongé is the best I've read." - Emehrkay
"It's a different approach to JavaScript than you'll find in most other places and shines a light on some of the more elegant parts of JavaScript the language." - @jeremymorrell
"This book is awesome and blowing my mind in a great way." - Johnathan Mukai
"Enjoying Javascript Allonge... I think it's the best discussion of functional programming in js I've found so far." - Nicholas Faiz
"Reading JavaScript Allongé by @raganwald. This book is so good that it's blowing my mind." - Guillermo Pascual
This open book is licensed under a Creative Commons License (CC BY-SA). You can download JavaScript Allongé ebook for free in PDF format (22.1 MB).
Table of Contents
A Pull of the Lever: Prefaces
Prelude: Values and Expressions over Coffee
A Rich Aroma: Basic Numbers
The first sip: Basic Functions
Recipes with Basic Functions
Picking the Bean: Choice and Truthiness
Composing and Decomposing Data
Recipes with Data
A Warm Cup: Basic Strings and Quasi-Literals
Stir the Allongé: Objects and State
Recipes with Objects, Mutations, and State
The Coffee Factory: "Object-Oriented Programming"
Served by the Pot: Collections
A Coffeehouse: Symbols
Life on the Plantation: Metaobjects
Decaffeinated: Impostors
Finish the Cup: Constructors and Classes
Recipes with Constructors and Classes
Colourful Mugs: Symmetry, Colour, and Charm
Con Panna: Composing Class Behaviour
More Decorators
More Decorator Recipes
Closing Time at the Coffeeshop: Final Remarks
The Golden Crema: Appendices and Afterwords