Understand Reactive Programming using RxJS

InstructorAndré Staltz

Share this video with your friends

Send Tweet

This lesson introduces Reactive Programming using RxJS in simple terms, with a concrete example and no scary terminology.

Brendan Whiting
~ 7 years ago

How does the reduce function know that you've reached the end of the event stream?

André Staltzinstructor
~ 7 years ago

Hi Brendan. A stream can emit 3 types of events: normal data to the next callback, errors to the error callback, and end of stream with the complete callback. This is how the reduce operator can conclude with one value: as soon as the source completes, it outputs the reduced value.

Brendan Whiting
~ 7 years ago

Cool thx

Rob
~ 7 years ago

Observable.interval(400).take(9).map(...) is not explained. Why? Never mind the man behind the curtain?

Nauris Vilcmeirs
~ 6 years ago

4:21 - it should be 42, not 33.

jaybe78
~ 6 years ago
Milan Barande
~ 6 years ago

Please get a microphone pop filter

J. Matthew
~ 6 years ago

This is such a great intro to the concept.

Kunal Ranjan
~ 2 years ago

i am unable to understand below syntax - var source = Rx.Observable.interval(400).take(9) .map(i => ['1', '1', 'foo', '2', '3', '5', 'bar', '8', '13'][i]); The array inside map method, which one is our calling array.

Lucas Minter
~ 2 years ago

André is accessing the array through the index. You can read more about it here. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#access_an_array_item_by_its_index