Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • So event listening is separate from reactive programming, and reactive programming is explicitly about streams? Also why is a user action considered async? Commented Apr 28, 2016 at 0:35
  • Thanks for all the detail! One more thing. How do you differentiate reactive programming and functional reactive programming? I see people use them almost interchangeably. Commented Apr 28, 2016 at 1:07
  • There are two different definitions of "Reactive Programming". One is simply the opposite (or rather dual) of Interactive Programming: programming where you react to the environment instead of you interacting with the environment. Think about this like the term "Iteration". Functional Reactive Programming, Events, Observers, etc. are just different ways of Reactive Programming, just like for loops, while loops, iterators etc. are different ways of iterating. So, FRP is a specific technique for doing RP. When people like Erik Meijer took ideas from FRP and re-interpreted them in the context of Commented Apr 28, 2016 at 1:12
  • … OO, this was also called RP, because it is kind-of like FRP, but not in a functional setting. FRP - F == RP. So, we now have two different interpretations of the term RP: FRP is a kind of RP (in the broad sense), as well as RP (in the narrow sense) is a kind of RP (in the broad sense). Both FRP and RP (in the narrow sense) are "cousins". Commented Apr 28, 2016 at 1:14
  • How would you implement RP in a OO environment? You mention "Mapping, folding, reducing, flatMapping, filtering, transforming, partitioning, merging, splitting, … Streams is exactly the same as mapping, folding, reducing, flatMapping, filtering, transforming, partitioning, merging, splitting, … collections." That sounds a lot like functional programming. Commented Apr 28, 2016 at 1:17