21
Reactive Extensions or Hollywood principle Anton Sizikov 03-Oct-2014 Amsterdam

Reactive Extensions or Hollywood principle

Embed Size (px)

Citation preview

Reactive Extensionsor Hollywood principle

Anton Sizikov 03-Oct-2014Amsterdam

Agenda

● Quick introduction to Pull model● Why do we need Push model?● What is Rx?● How can we use it?● Is it only for .Net?

Is it all about .Net only?

No

Pull model

Typical code

IEnumerable<T>

Linq or declarative code

One bad example

Happy debugging!

Hollywood principle

Hollywood principle

How do we implement it?

● Events● Callbacks● Observers

Observer pattern

IObservable<T>

Push model

Duality

Duality

● IObservable ⇔ IEnumerable● UnitTesting

Demo

Rx-family

● Rx.Net● RxJs (ES6, Angular, jQuery,DOM, Node...)● RxCpp● RxJava● RxPy● Rx.PHP● and more...

Some names

Interested?

reactivex.io

Questions?