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

  • PHP Reactive Programming
  • Martin Sikora
  • 176字
  • 2021-07-09 19:06:16

Summary

In this chapter, we tried to explain the common programming paradigms used in most programming languages. These were: imperative, declarative and functional programming. We also compared the meanings of asynchronous and parallel code.

We spent some time on practical examples of functional programming in PHP and its downsides, and we went through examples of some not very common features, such as the Closure class.

Then, we examined the definition of reactive programming and how it's related to all we saw previously in this chapter.

We introduced Reactive Extensions (Rx) as a library for one of the possible approaches to reactive programming.

In two examples of RxJS, we saw what working with Reactive Extensions looks like in practice and how this matches our definition of reactive programming.

Finally, we introduced RxPHP, which we'll use throughout this entire book. We also quickly talked about differences between RxPHP 1.x and RxPHP 2.

In the next chapter, we'll have a closer look at various parts of the RxPHP library and talk more about the principles used in Reactive Extensions.

主站蜘蛛池模板: 洪江市| 海丰县| 鸡西市| 玉溪市| 涿鹿县| 益阳市| 石楼县| 峨眉山市| 济阳县| 交口县| 蕲春县| 蒙自县| 商丘市| 大姚县| 丘北县| 古交市| 乐业县| 九龙县| 武乡县| 锦州市| 漳州市| 六枝特区| 南康市| 广宗县| 巴林右旗| 龙里县| 昭通市| 祁门县| 梅河口市| 沧州市| 平凉市| 长治县| 凤阳县| 绥棱县| 汉川市| 岑巩县| 贞丰县| 彭水| 黄陵县| 鹤峰县| 当涂县|