- 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.
推薦閱讀
- MySQL數(shù)據(jù)庫(kù)管理實(shí)戰(zhàn)
- Mobile Web Performance Optimization
- HoloLens Beginner's Guide
- 編程珠璣(續(xù))
- 基于Java技術(shù)的Web應(yīng)用開(kāi)發(fā)
- 零基礎(chǔ)入門(mén)學(xué)習(xí)Python
- Getting Started with Greenplum for Big Data Analytics
- 青少年信息學(xué)競(jìng)賽
- 從零開(kāi)始學(xué)C語(yǔ)言
- PHP從入門(mén)到精通(第4版)(軟件開(kāi)發(fā)視頻大講堂)
- 區(qū)塊鏈技術(shù)與應(yīng)用
- Raspberry Pi Robotic Projects
- C語(yǔ)言程序設(shè)計(jì)
- Linux Networking Cookbook
- KnockoutJS Blueprints