This document summarizes a presentation about reactive interfaces. It discusses reactive extensions, the observer pattern, iterator pattern, observable streams, and state management using RxJS. The observer pattern is used for one-to-many relationships where dependent objects are notified of changes. The iterator pattern accesses collection elements sequentially without knowing the representation. Reactive extensions compose asynchronous programs using observable sequences. Observable streams treat asynchronous events like arrays using simple operations. State management with RxJS involves creating a BehaviorSubject to merge actions and reduce state changes.
3. Reactive Extensions
ReactiveX is a combination of the best ideas from
the Observer pattern, the Iterator pattern and
Functional Programming.
4. Observer Pattern
Observer pattern is used when
there is one-to-many
relationship between objects
such as if one object is
modified, its depenedent
objects are to be notified
automatically.
5. Iterator Pattern
This pattern is used to get a way to access the elements of a collection object in sequential
manner without any need to know its underlying representation.
7. Observable Stream
Observable model allows you to treat streams of
asynchronous events with the same sort of simple,
composable operations that you use for collections of data
items like arrays.
Observer + Iterator = Observable
11. State Management
State is the information that represents the current User’s context.
Application state is composed by:
- All data persisted across page refresh
- All data persisted across route change
- All data used in multiple places in the UI