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

Functional Programming Fundamentals

JavaScript has been a multi-paradigm programming language since its inception back in 1995. It allows us to take advantage of an object-oriented programming (OOP) style along with a functional programming style. The same can be said of TypeScript. However, for functional programming, TypeScript is even better suited than JavaScript because, as we will learn in this chapter, static type systems and type inference are both very important features in functional programming languages such as the ML family of programming languages, for example.

The JavaScript and TypeScript ecosystems have experienced a significant increase in interest in functional programming over the last few years. I believe that this increase in interest can be attributed to the success of React. React is a library developed by Facebook for building user interfaces, and it is highly influenced by some core functional programming concepts.

In this chapter, we will focus on learning some of the most basic functional programming concepts and principles.

In this chapter, you will learn about the following:

  • The main characteristics of functional programming
  • The main benefits of functional programming
  • Pure functions
  • side-effects
  • Immutability
  • Function arity
  • Higher-order functions
  • Laziness
主站蜘蛛池模板: 阳城县| 太和县| 忻城县| 泰来县| 昌吉市| 隆化县| 东城区| 福州市| 清远市| 太湖县| 彝良县| 浦江县| 汾阳市| 聊城市| 鹤山市| 鹤庆县| 台湾省| 定南县| 达州市| 来宾市| 溆浦县| 含山县| 固安县| 长沙市| 青海省| 和龙市| 安国市| 乐清市| 收藏| 平顶山市| 武乡县| 文成县| 疏附县| 苍山县| 维西| 武义县| 清镇市| 桐梓县| 蓝山县| 常德市| 丹东市|