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

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
主站蜘蛛池模板: 定陶县| 保德县| 沅陵县| 卢氏县| 茶陵县| 安化县| 连江县| 潞城市| 东光县| 晋宁县| 界首市| 彭水| 子洲县| 铜山县| 新津县| 如东县| 抚宁县| 扬州市| 营山县| 睢宁县| 自治县| 周宁县| 陆良县| 华阴市| 中西区| 巩义市| 津市市| 个旧市| 长岛县| 乡城县| 安陆市| 宝丰县| 惠州市| 东平县| 万盛区| 新田县| 诸城市| 五寨县| 阜新| 盐山县| 武山县|