This repository holds our school project about reactive programming with reactiveX. We choose JavaScript/TypeScript to demonstrate how observables, observers and operators work.
- Hot vs. cold observables
- COLD is when your observable creates the producer
// COLD var cold = new Observable((observer) => { var producer = new Producer(); // have observer listen to producer here });
- HOT is when your observable closes over the producer
// HOT var producer = new Producer(); var hot = new Observable((observer) => { // have observer listen to producer here });
- Async Subject
- Behavior Subject
- Replay Subject
- Map
- Filter
- Scan
- SwitchMap
- MergeMap
- combineLatest
- take
- Throtteling
- Buffering
- Debounce
- Windows
- RxJS
- RxJava
- http://reactivex.io/rxjs/manual/tutorial.html#external-references
- http://reactivex.io/
- https://medium.com/@benlesh/hot-vs-cold-observables-f8094ed53339
- https://rxviz.com/examples/grouped-fibonacci
To run the examples make sure you have node.js(tested Version 8.9.3LTS) installed on your system. Run npm install to install the dependencies and run the examples in the console with "node ./src/.js