- Mastering JavaScript Functional Programming
- Federico Kereki
- 150字
- 2021-07-02 22:41:09
Thinking Functionally - A First Example
In chapter 1, Becoming Functional - Several Questions, we went over what FP is, mentioned some advantages of applying it, and listed some tools we'd be needing in JS... but let's now leave theory behind, and start out by considering a simple problem, and how to solve it in a functional way.
In this chapter, we will see:
- A simple, common, e-commerce related problem
- Several usual ways to solve it, with their associated defects
- A way to solve the problem by looking at it functionally
- A higher-order solution, which can be applied to other problems
- How to do unit testing for the functional solutions
In future chapters, We'll be coming back to some of the topics listed here, so we won't be getting very much into details. We'll just show how FP can give a different outlook for our problem, and leave further details for afterward.
推薦閱讀
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- Spring技術內幕:深入解析Spring架構與設計
- Java面向對象思想與程序設計
- Leap Motion Development Essentials
- Web Scraping with Python
- 從0到1:HTML+CSS快速上手
- C語言程序設計實驗指導 (第2版)
- C語言程序設計
- Frank Kane's Taming Big Data with Apache Spark and Python
- Instant Zurb Foundation 4
- Android編程權威指南(第4版)
- WCF技術剖析(卷1)
- Python應用開發技術
- Mastering Python
- SAP HANA Starter