- Mastering JavaScript Functional Programming
- Federico Kereki
- 134字
- 2021-07-02 22:41:12
Starting Out with Functions - A Core Concept
In chapter 2, Thinking Functionally - A First Example, we went over an example of FP thinking, but let's now go to the basics, and review functions. In Chapter 1, Becoming Functional - Several Questions, we mentioned that two important JS features were functions as first-class objects and closures. Now, in this chapter, let's:
- Examine some key ways of defining functions in JS
- Go in detail regarding arrow functions, which are closest to the lambda calculus functions
- Introduce the concept of currying
- Revisit the concept of functions as first-class objects
We'll also consider several FP techniques, such as:
- Injection, as needed for sorting with different strategies and other uses
- Callbacks and promises, introducing the continuation passing style
- Polyfilling and stubbing
- Immediate invocation schemes
推薦閱讀
- 樂學Web編程:網站制作不神秘
- 微服務設計原理與架構
- Java開發入行真功夫
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- Java程序員面試筆試寶典(第2版)
- App Inventor 2 Essentials
- 一步一步跟我學Scratch3.0案例
- Exploring SE for Android
- 從零開始學UI:概念解析、實戰提高、突破規則
- R的極客理想:量化投資篇
- Using Yocto Project with BeagleBone Black
- 軟件設計模式(Java版)
- 青少年Python趣味編程
- Unity 3D UI Essentials
- Flink原理深入與編程實戰:Scala+Java(微課視頻版)