Answer the question
In order to leave comments, you need to log in
Where can I see a comparison of reactive programming with conventional programming?
I would like to see an example according to the principle - this is how the code looks in standard programming, and this is how it looks in reactive. To understand the essence. Everywhere they paint how everything is beautiful, but there is no demonstration of this beauty. Give links.
Particularly interested in its advantages over the Listener + AsyncTask pattern (registering a listener with a callback function for events thrown by asynctask)
Answer the question
In order to leave comments, you need to log in
ReactJS is not related to reactive programming. React is a view framework. And yes, its name can be misleading.
The RxJS library is responsible for reactive programming in JS. And you are right, you will hardly find examples in the style of "this is how it is done in jQuery, but this is how it is done in RxJS". In general, if you start typing "RxJS vs" in Google, then Google will suggest complete nonsense, because Rx cannot be compared with non-Rx.
Here is a good article in which Rx is used, so to speak, for its intended purpose https://habrahabr.ru/company/infopulse/blog/338910/
I don't really understand what AsyncTask is, but Listener is a design pattern. And Rx is a programming paradigm. Comparing pattern and paradigm is as difficult as comparing a brick house to a plank of wood. Rx provides the entity Subject, which just represents the behavior of the Listener template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question