出版社: O'Reilly Media
副标题: Introducing Functional Programming with Underscore.js
出版年: 2013-6-17
页数: 260
定价: USD 29.99
装帧: Paperback
ISBN: 9781449360726
内容简介 · · · · · ·
While some web developers dismiss JavaScript as a flawed language, this succinct book shows you how to make the best of it by practicing a functional style of JavaScript programming. Written by Michael Fogus - a core contributor to Clojure and ClojureScript, and author of The Joy of Clojure (Manning) - this book is packed with not only the how of functional programming, but als...
While some web developers dismiss JavaScript as a flawed language, this succinct book shows you how to make the best of it by practicing a functional style of JavaScript programming. Written by Michael Fogus - a core contributor to Clojure and ClojureScript, and author of The Joy of Clojure (Manning) - this book is packed with not only the how of functional programming, but also the why. Each topic illustrated with pointed examples. You'll also get a thorough reference to the Underscore.js library and its idioms, including: Closures Applicative programming Laziness Immutability Higher-order functions Purity Combinators Currying and partial application
作者简介 · · · · · ·
Michael Fogus
Michael Fogus is software developer with experience in distributedsimulation, machine vision, and expert systems construction. He's actively involved in the Clojure and Scala communities.
http://www.fogus.me/
目录 · · · · · ·
The Case for JavaScript
Getting Started with Functional Programming
The Case for Underscore
Summary
Chapter 2 First-Class Functions and Applicative Programming
· · · · · · (更多)
The Case for JavaScript
Getting Started with Functional Programming
The Case for Underscore
Summary
Chapter 2 First-Class Functions and Applicative Programming
Functions as First-Class Things
Applicative Programming
Data Thinking
Summary
Chapter 3 Variable Scope and Closures
Global Scope
Lexical Scope
Dynamic Scope
Function Scope
Closures
Summary
Chapter 4 Higher-Order Functions
Functions That Take Other Functions
Functions That Return Other Functions
Putting It All Together: Object Validators
Summary
Chapter 5 Function-Building Functions
The Essence of Functional Composition
Currying
Partial Application
Stitching Functions End-to-End with Compose
Summary
Chapter 6 Recursion
Self-Absorbed Functions (Functions That Call Themselves)
Codependent Functions (Functions Calling Other Functions That Call Back)
Too Much Recursion!
Recursion Is a Low-Level Operation
Summary
Chapter 7 Purity, Immutability, and Policies for Change
Purity
Immutability
Policies for Controlling Change
Summary
Chapter 8 Flow-Based Programming
Chaining
Pipelining
Data Flow versus Control Flow
Summary
Chapter 9 Programming Without Class
Data Orientation
Mixins
}).call("Finis");
Appendix Functional JavaScript in the Wild
Functional Libraries for JavaScript
Functional Programming Languages Targeting JavaScript
Appendix Annotated Bibliography
Papers/Books/Blog Posts/Talks
Presentations
Blog Posts
Journal Articles
Colophon
· · · · · · (收起)
原文摘录 · · · · · ·
喜欢读"Functional JavaScript"的人也喜欢的电子书 · · · · · ·
喜欢读"Functional JavaScript"的人也喜欢 · · · · · ·
Functional JavaScript的书评 · · · · · · ( 全部 5 条 )
建议你们在前面几章里把看到的作者自己写的函数记一下
很精简、很有实践意义的书
Functional JavaScript
> 更多书评 5篇
论坛 · · · · · ·
在这本书的论坛里发言这本书的其他版本 · · · · · · ( 全部2 )
-
人民邮电出版社 (2015)6.5分 101人读过
以下书单推荐 · · · · · · ( 全部 )
- 书单-编程-前端 (LZX)
- Javascript 好书 (windschar)
- JavaScript (whg)
- 函数式编程(javascript) (野鹤鹤)
- 2016读书 (zhoyoyo)
谁读这本书? · · · · · ·
二手市场
· · · · · ·
- 在豆瓣转让 有206人想读,手里有一本闲着?
订阅关于Functional JavaScript的评论:
feed: rss 2.0
0 有用 panpan 2018-03-15 03:28:42
这本在书店翻了一下,主要是关于javascript underscorejs lib的,coding效率能提高很多,当然直接看api doc更方便(不愿意写太多代码的懒人推荐。
1 有用 juntao.qiu 2015-02-28 22:22:20
基于underscore.js这个JavaScript库,写的清晰易懂。吹毛求疵一些,有些地方的解释不够详细。推荐在学习了JavaScript基础知识之后作为进阶读物。
0 有用 我就改个名字 2014-08-07 21:16:40
粗略读过。。。
0 有用 fortis 2013-07-31 20:53:39
明明是好书,为什么读着这么不对味
2 有用 Parabola 2014-09-12 11:49:23
钥匙丢了,昨晚坐在寝室门口看完了这本书。此书写得非常好,语言特性面面俱到,尤其是一些函数式转化 / 闭包域 / 变量特性的东西,例子很全面 & 深刻,可细读。
0 有用 小盼 2022-05-31 08:43:53
有点怪,感觉他把简单的事情写复杂了,代码有点绕,为了解释而解释去掰代码,看不进去了
0 有用 panpan 2018-03-15 03:28:42
这本在书店翻了一下,主要是关于javascript underscorejs lib的,coding效率能提高很多,当然直接看api doc更方便(不愿意写太多代码的懒人推荐。
0 有用 Tao 2017-12-10 22:14:34
里面有很多是非常常用的pattern, 值得一读, 如果读完然后自己过一遍underscore或者lodash的话 js的基础就绝对扎实了.
1 有用 Luke 2017-05-21 10:15:22
如果熟悉 Underscore 库,阅读本书会更轻松。没有基础的猿类慎读,感觉智力被碾压。
3 有用 杰妮蛇精病 2017-03-27 22:33:11
内容不错,一步步深入函数式编程的几个主要概念。但我只给三颗星。一颗扣在没看清楚标题,书里主要以unsercore.js为基础写代码,然而并不会介绍他用的这个方法是作什么用,为什么选用这个方法,不熟悉的就要一手翻官网资料一手阅读,而且我认为underscore本身就很函数式,简单的示例用underscore显得多余,复杂的示例自己写代码套用underscore显得不伦不类。另一颗扣在作者示例上下联系... 内容不错,一步步深入函数式编程的几个主要概念。但我只给三颗星。一颗扣在没看清楚标题,书里主要以unsercore.js为基础写代码,然而并不会介绍他用的这个方法是作什么用,为什么选用这个方法,不熟悉的就要一手翻官网资料一手阅读,而且我认为underscore本身就很函数式,简单的示例用underscore显得多余,复杂的示例自己写代码套用underscore显得不伦不类。另一颗扣在作者示例上下联系太紧密,函数命名却太简单,像我这种用碎片化时间学习的人,看起来那叫一个痛苦,一个示例突然就冒出来一个不知道干什么用的函数,名字看不懂,翻遍前两章都找不到。 (展开)