What is difference between observer pattern and reactive programming? - Stack Overflow
Reactive programming, at least how I understand it, is the general term behind easily propagating changes through the execution of a prorgam. It's not a specific pattern or entity per-se, it's an idea, or style of programming. It's the concept that when x
changes in one location, the things that depend on the value of x
are recalculated and updated in various other locations with a minimum of fuss.
The observer pattern (at least in OO languages) is a common method for providing a "trigger" to allow information to be updated whenever such a change is made (or, in more common OO terms, when an "event" is fired.) In that sense, it provides a mechanism for allowing the concept of reactive programming to happen in OO (and sometimes other) style languages.
Read full article from What is difference between observer pattern and reactive programming? - Stack Overflow
No comments:
Post a Comment