What is the difference between Dataflow programming and Reactive programming?

前端 未结 1 432
说谎
说谎 2021-02-03 22:46

I really can\'t see the difference between them. They are both about data flowing through instructions and the propagation of changes in the input data. I\'ve read this book (au

相关标签:
1条回答
  • 2021-02-03 23:41

    Reactive Programming is a form of Dataflow programming only. But its also a paradigm which is oriented around propagation of changes along with data flows

    Like a example given on Wiki Page

    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. However, in reactive programming, the value of a would be automatically updated whenever the values of b and c change, without the program executing the sentence a := b + c again.

    Which is the main difference between two of them. It binds the variables with expression and system reacts upon the changes in variable without running the expressions again and again.

    0 讨论(0)
提交回复
热议问题