官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 余干县| 海口市| 田东县| 宝坻区| 凌海市| 明水县| 曲松县| 浦城县| 开平市| 盐山县| 平顶山市| 贺州市| 克拉玛依市| 汉中市| 赣州市| 醴陵市| 峡江县| 汤阴县| 包头市| 新巴尔虎左旗| 凤翔县| 禹州市| 厦门市| 城步| 通许县| 崇礼县| 南昌县| 榆林市| 高邮市| 江口县| 潍坊市| 曲松县| 舟曲县| 岳普湖县| 新晃| 安岳县| 彭州市| 辰溪县| 仙桃市| 南乐县| 湘阴县|