Slide 1

Slide 1 text

GOING REACTIVE An Introduction to RxProgramming Hamburg, 29. September 2017

Slide 2

Slide 2 text

Rx.Observable.flatMapLatest(selector, [thisArg]) Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. WTF?

Slide 3

Slide 3 text

BENE Developer @slashbene

Slide 4

Slide 4 text

Y? Theory Code THREE THINGS

Slide 5

Slide 5 text

Y? Theory Code Y?

Slide 6

Slide 6 text

ANCIENT HISTORY

Slide 7

Slide 7 text

NOW

Slide 8

Slide 8 text

THE SLUG

Slide 9

Slide 9 text

THE SLUG – BATCHING

Slide 10

Slide 10 text

THE SLUG – THREADS

Slide 11

Slide 11 text

THE SLUG – SCALING

Slide 12

Slide 12 text

Y? Theory Code THEORY

Slide 13

Slide 13 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 14

Slide 14 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 15

Slide 15 text

IN COMPUTING, REACTIVE PROGRAMMING IS AN ASYNCHRONOUS PROGRAMMING PARADIGM CONCERNED WITH DATA STREAMS AND THE PROPAGATION OF CHANGE.

Slide 16

Slide 16 text

A STREAM

Slide 17

Slide 17 text

STREAM EXAMPLES

Slide 18

Slide 18 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 19

Slide 19 text

FROM PULL TO PUSH

Slide 20

Slide 20 text

GET RID OF THE SLUG

Slide 21

Slide 21 text

GET RID OF THE SLUG

Slide 22

Slide 22 text

GET RID OF THE SLUG

Slide 23

Slide 23 text

GET RID OF THE SLUG

Slide 24

Slide 24 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 25

Slide 25 text

OBSERVABLE – MARBLE DIAGRAM

Slide 26

Slide 26 text

OBSERVABLE – STATES

Slide 27

Slide 27 text

OBSERVABLE – EXECUTION

Slide 28

Slide 28 text

OBSERVABLE – EXECUTION SEQUENCE

Slide 29

Slide 29 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 30

Slide 30 text

THE OPERATOR ONION

Slide 31

Slide 31 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 32

Slide 32 text

VOODOO

Slide 33

Slide 33 text

VOODOO – ZIP OPERATOR

Slide 34

Slide 34 text

VOODOO – FLATMAP OPERATOR

Slide 35

Slide 35 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 36

Slide 36 text

THE GOOD

Slide 37

Slide 37 text

THE BAD AND THE UGLY

Slide 38

Slide 38 text

Basics From pull to push Observable The Operator Onion Voodoo The Good, the Bad and the Ugly How and when to use THEORY

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Y? Theory Code CODE

Slide 42

Slide 42 text

BENEDIKT STEMMILDT React! DEV.OTTO.DE GITHUB.COM/OTTO-DE GITHUB.COM/BENESTEM [email protected]