- 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.
推薦閱讀
- Learning ROS for Robotics Programming(Second Edition)
- Dynamics 365 Application Development
- Hands-On Data Structures and Algorithms with JavaScript
- 零基礎學Java(第4版)
- Podman實戰
- Working with Odoo
- Oracle 18c 必須掌握的新特性:管理與實戰
- Web性能實戰
- Mastering Embedded Linux Programming
- Web前端開發技術:HTML、CSS、JavaScript
- 現代CPU性能分析與優化
- 數據結構:Python語言描述
- WCF技術剖析(卷1)
- Drupal 8 Development Cookbook(Second Edition)
- Raspberry Pi開發實戰