Composing Software: An Exploration of Functional Programming and Object Composition in JavaScript

Composing Software: An Exploration of Functional Programming and Object Composition in JavaScript

简介:

所有的软件设计都是组合的: 将复杂的问题分解成更小的问题并组合这些解决方案的行为。大多数开发人员对组合技术的理解有限。是时候改变了。作者分享了组合的基本原理,包括函数组合和对象组合,并在JavaScript的上下文中探索它们。本书涵盖了函数式编程和面向对象编程的基础,以帮助读者更好地理解如何使用简单的构建块构建和构建复杂的应用程序。

函数式编程对象组成如何使用复合数据结构闭包高阶函数函子 (例如,array.map)单子 (例如,承诺)传感器Lensese

所有这些都是在JavaScript的背景下进行的,JavaScript是世界上最常用的编程语言。但是学习并不止于JavaScript。您将能够将这些课程应用于任何语言。这本书是关于软件组成的永恒原则,它的课程将比今天的热门语言和框架更持久。与大多数编程书籍不同,这本书可能在20年后仍然适用。

英文简介:

All software design is composition: the act of breaking complex problems down into smaller problems and composing those solutions. Most developers have a limited understanding of compositional techniques. It's time for that to change.

The authore shares the fundamentals of composition, including both function composition and object composition, and explores them in the context of JavaScript. The book covers the foundations of both functional programming and object oriented programming to help the reader better understand how to build and structure complex applications using simple building blocks.

Functional programmingObject compositionHow to work with composite data structuresClosuresHigher order functionsFunctors (e.g., array.map)Monads (e.g., promises)TransducersLensese

All of this in the context of JavaScript, the most used programming language in the world. But the learning doesn't stop at JavaScript. You'll be able to apply these lessons to any language. This book is about the timeless principles of software composition and its lessons will outlast the hot languages and frameworks of today. Unlike most programming books, this one may still be relevant 20 years from now.

书名
Composing Software: An Exploration of Functional Programming and Object Composition in JavaScript
译名
编写软件:JavaScript 中的函数式编程和对象组合探索
语言
英语
年份
2017
页数
254页
大小
2.99 MB
标签
  • 函数式编程
  • JavaScript
  • 下载
    pdf iconComposing Software: An Exploration of Functional Programming and Object Composition in JavaScript.pdf
    密码
    65536

    最后更新:2025-04-12 23:54:38

    ←Patterns of Software: Tales from the Software Community

    →Flourish by Design