Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.39 KB

TT-frontend_2019-04-11.md

File metadata and controls

32 lines (20 loc) · 1.39 KB

Topic: 2019-04-11 Frontend development

Reactive Programming & RxJS

https://www.facebook.com/events/381459025793671/

What we will talk about?

The essential concepts in RxJS which solve async event management are:

Observable: represents the idea of an invokable collection of future values or events.

Observer: is a collection of callbacks that knows how to listen to values delivered by the Observable.

Subscription: represents the execution of an Observable, is primarily useful for cancelling the execution.

Operators: are pure functions that enable a functional programming style of dealing with collections with operations like map, filter, concat, reduce, etc.

Subject: is the equivalent to an EventEmitter, and the only way of multicasting a value or event to multiple Observers.

Schedulers: are centralized dispatchers to control concurrency, allowing us to coordinate when computation happens on e.g. setTimeout or requestAnimationFrame or others.

Exercises of the day:

Final Goal Reactive Programming & RxJS Exercises:

  1. Game built thinking reactively and animated moving objects using RxJs

Next talks:

-How to think reactively and animate moving objects using RxJs https://medium.freecodecamp.org/thinking-reactively-how-to-animate-with-movement-objects-using-rxjs-692518b6f2a