Leanpub Header

Skip to main content

JavaScript Allongé, the "Six" Edition

Programming from Functions to Classes in ECMAScript 2015

JavaScript Allongé, the "Six" Edition
本书目前的完成进度为 100%上次更新时间:2019-04-26

A long pull of functions, combinators, & decorators, written in modern JavaScript.

会员免费

有会员资格

免费!

$19.99

支付金额

作者利润

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
8,072
读者
511
页数
89,473字数
以前的 Edition有位读者
关于

关于

关于本书

What readers have to say:

“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

And listen to the JavaScript Jabber Book Club Podcast about JavaScript Allongé!

“Reading JavaScript Allongé by @raganwald. This book is so good that it's blowing my mind.”—Guillermo Pascual

捆绑包

本书页包含在这些优惠组合中:

作者

关于作者们

Reg “raganwald” Braithwaite

When he's not shipping CoffeeScript, JavaScript, Ruby, and Java applications scaling out to millions of users, Reg "Raganwald" Braithwaite creates programming libraries such as Allong.es, Method Combinators, Katy, JQuery Combinators, YouAreDaChef, andand, and others.

He writes primarily about programming. Find out more on his  home page.

The Leanpub Podcast

播客

Podcast Episode

用户评价

读者推荐语

目录

目录

A Pull of the Lever: Prefaces

  1. About JavaScript Allongé
  2. What JavaScript Allongé is. And isn’t.
  3. Foreword to the “Six” edition
  4. Forewords to the First Edition

Prelude: Values and Expressions over Coffee

  1. values are expressions
  2. values and identity

A Rich Aroma: Basic Numbers

The first sip: Basic Functions

  1. As Little As Possible About Functions, But No Less
  2. Ah. I’d Like to Have an Argument, Please.10
  3. Closures and Scope
  4. That Constant Coffee Craving
  5. Naming Functions
  6. Combinators and Function Decorators
  7. Building Blocks
  8. Magic Names
  9. Summary

Recipes with Basic Functions

  1. Partial Application
  2. Unary
  3. Tap
  4. Maybe
  5. Once
  6. Left-Variadic Functions
  7. Compose and Pipeline

Picking the Bean: Choice and Truthiness

Composing and Decomposing Data

  1. Arrays and Destructuring Arguments
  2. Self-Similarity
  3. Tail Calls (and Default Arguments)
  4. Garbage, Garbage Everywhere
  5. Plain Old JavaScript Objects
  6. Mutation
  7. Reassignment
  8. Copy on Write
  9. Tortoises, Hares, and Teleporting Turtles
  10. Functional Iterators
  11. Making Data Out Of Functions

Recipes with Data

  1. mapWith
  2. Flip
  3. Object.assign
  4. Why?

A Warm Cup: Basic Strings and Quasi-Literals

Stir the Allongé: Objects and State

  1. Encapsulating State with Closures
  2. Composition and Extension
  3. This and That
  4. What Context Applies When We Call a Function?
  5. Method Decorators
  6. Summary

Recipes with Objects, Mutations, and State

  1. Memoize
  2. getWith
  3. pluckWith
  4. Deep Mapping

The Coffee Factory: “Object-Oriented Programming”

Served by the Pot: Collections

  1. Iteration and Iterables
  2. Generating Iterables
  3. Lazy and Eager Collections
  4. Interlude: The Carpenter Interviews for a Job
  5. Interactive Generators
  6. Basic Operations on Iterables

A Coffeehouse: Symbols

Life on the Plantation: Metaobjects

  1. Why Metaobjects?
  2. Mixins, Forwarding, and Delegation
  3. Later Binding
  4. Delegation via Prototypes
  5. Shared Prototypes

Decaffeinated: Impostors

Finish the Cup: Constructors and Classes

  1. Constructors and new
  2. Why Classes in JavaScript?
  3. Classes with class
  4. Object Methods
  5. Why Not Classes?
  6. Summary

Recipes with Constructors and Classes

  1. Bound
  2. Send
  3. Invoke
  4. Fluent

Colourful Mugs: Symmetry, Colour, and Charm

Con Panna: Composing Class Behaviour

  1. Extending Classes with Mixins
  2. Functional Mixins
  3. Emulating Multiple Inheritance
  4. Preventing Property Conflicts
  5. Reducing Coupling

More Decorators

  1. Stateful Method Decorators
  2. Class Decorators beyond ES6/ECMAScript 2015
  3. Method Decorators beyond ES6/ECMAScript 2015
  4. Lightweight Traits

More Decorator Recipes

  1. After Method Advice
  2. Before Method Advice
  3. Provided and Unless
  4. Method Advice

Closing Time at the Coffeeshop: Final Remarks

The Golden Crema: Appendices and Afterwords

  1. How to run the examples
  2. Thanks!
  3. Reading JavaScript Allongé on Kindle
  4. Copyright Notice
  5. About The Author

作者的其他著作

作者的其他著作

Leanpub 无条件、零风险的100%满意保证

支付后的60天内,只需简单点击两下,您便可以退书并且取回先前支付的全部金额
查看完整条款

在10美元的购买中赚取8美元,在20美元的购买中赚取16美元

我们在7.99美元或以上的购买中支付80%的版税,在0.99美元到7.98美元之间的购买中支付80%的版税减去0.5美元固定费用在10美元的销售中您可赚取8美元,在20美元的销售中可赚取16美元。因此,如果我们以20美元的价格售出5000本未退款的图书,您将赚取80,000美元

(是的,一些作者在Leanpub上已经赚取了远超过这个数额的收入。)

事实上,作者们通过在Leanpub上写作、出版和销售已经赚取了超过1400万美元

了解更多关于在Leanpub上写作的信息

免费更新。无DRM。

如果你购买了Leanpub的书,只要作者更新这本书,你就可以免费获得更新!许多作者使用Leanpub在他们编写书籍的过程中发布他们的作品。所有读者都可以获得免费更新,无论他们何时购买的书或他们支付了多少钱(包括免费)。

大多数Leanpub书籍都提供PDF(适用于计算机)、EPUB(适用于手机和平板电脑)和MOBI(适用于Kindle)格式。书籍包含的格式会显示在此页面的右上角。

最后,Leanpub的书籍没有任何DRM版权保护的限制,所以你可以轻松地在任何支持的设备上阅读它们。

了解更多关于Leanpub的电子书格式以及在哪里阅读它们

在 Leanpub 上写作和出版

作者与出版社使用 Leanpub 来出版正在写作中和已完成的书籍,就像这本书一样。你也可以使用 Leanpub 来撰写、出版和销售你的作品!Leanpub 是功能强大的平台,非常适合认真的作者。它结合了简单、优雅的写作与出版流程,以及一个可销售正在写作中的电子书的线上商店。Leanpub 是作家的神奇之笔:只需编写纯文本,然后点击按钮即可出版你的电子书。真的就是这么简单。

学习更多关于在 Leanpub 上写作的信息