Why is functional reactive programming associated with event flows?

I am learning functional reactive programming, and most of the examples I have found are all about event streams like Bacon.js. I'm not sure I get these examples. I thought FRP was a change in one variable and a continuous change in other affected variables, but in a functional way. How do I understand functional functional reactive programming?

+4
source share
1 answer

You are absolutely correct in understanding FRP. The terminology used in the Bacon seems to bother you. Since the whole mess is really associated with event streams, it is not clear from the very beginning exactly how these streams appear, and what their relationship is with browser events and DOM elements. I also had this question.

To better understand what FRP is and not Bacon, I suggest you read the Sebastiaan Visser Reactive JavaScript Programming post on Silk Engineering's Blog.

This reading helped me understand the subject, and I am more than sure that it will also break you.

, , , ( ) - , , .

+1

Source: https://habr.com/ru/post/1534068/


All Articles