Functional JavaScript

书名:Functional JavaScriptIntroducingFunctionalProgrammingwithUnderscore.js
作者:MichaelFogus
译者:
ISBN:9781449360726
出版社:O'ReillyMedia
出版时间:2013-6-17
格式:epub/mobi/azw3/pdf
页数:260
豆瓣评分: 8.1

书籍简介:

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/

书友短评:

@ 豌豆黄 内容不错,一步步深入函数式编程的几个主要概念。但我只给三颗星。一颗扣在没看清楚标题,书里主要以unsercore.js为基础写代码,然而并不会介绍他用的这个方法是作什么用,为什么选用这个方法,不熟悉的就要一手翻官网资料一手阅读,而且我认为underscore本身就很函数式,简单的示例用underscore显得多余,复杂的示例自己写代码套用underscore显得不伦不类。另一颗扣在作者示例上下联系太紧密,函数命名却太简单,像我这种用碎片化时间学习的人,看起来那叫一个痛苦,一个示例突然就冒出来一个不知道干什么用的函数,名字看不懂,翻遍前两章都找不到。

Chapter 1 Introducing Functional JavaScript
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
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

添加微信公众号:“好书天下”获取书籍

添加微信公众号:“好书天下”获取书籍添加微信公众号:“好书天下”获取书籍