Reactive Programming

About

Reactive Programming means that a change of state is immediately propagated to the system.

It's based on the observer / subscriber pattern

https://www.reactivemanifesto.org/

Example

Imperative Programming vs Reactive programming

In an imperative programming setting, the expression a:=b+c would mean that a is being assigned the result of b+c in the instant the expression is evaluated, and later, the values of b and c can be changed with no effect on the value of a.

On the other hand, in reactive programming, the value of a is automatically updated whenever the values of b or c change, without the program having to re-execute the statement a:=b+c to determine the presently assigned value of a.

Application

The following application are reactive:

  • Real-time programs
  • Excel. If you change the value of a cell, the formula using this cell are immediately recalculated.

Model

Documentation / Reference


Powered by ComboStrap