I am browsing Rx-framework materials over the web and I have found a lot.
Now that I am talking to Google, I also found the Reactive Programming link to the wikipedia link.
Since reactive programming is associated with a: = b + c, (a changes with b or c). and Rx is a subscription to the observed sequence published by the source.
Can someone explain what exactly is the link between reactive programming and Rx?
"" "" , . "" - . , , , . Fin.
- . ""? , (, ..). "Notepad.exe". , "". , GUI, - , - , .
- , . , . Rx IObservable<T>. - , .
IObservable<T>
, , , "-" "", .
Reactive Extensions - - , #. , Rx, - Rx ( ).
FRP Rx, ...
var a = new BehaviorSubject<int>(10); var b = new BehaviorSubject<int>(5); var c = Rx.Observable.CombineLatest(a, b, (a, c) => a + b);
behavior a = 5; behavior b = 10; behavior c = a + b;
Rx . . . , FRP, FRP, , Rx.
, , Rx - , , .
- , " ". , , ( , #), "if" "for".
(FRP). FRP - , , .
Reactive Extensions - , LINQ .
a = b + c. , a , b c.
a = b + c
a
b
c
, , a, b c. , b c, a, .
A series that varies in time in Rx is IObservable<T>.
So, if we start with sequences bsand cs, which are each of the types IObervable<int>, we can generate a series of @asas follows:
bs
cs
IObervable<int>
@as
var @as = bs.CombineLatest(cs, (b, c) => b + c);
Now I can get the last value from @asas follows:
@as.Subscribe(a => { /* do something with a */ });
This is an (example) reactive programming using Rx.