$30 off During Our Annual Pro Sale. View Details »

Going Reactive: Eine Einführung in die reaktive Programmierung

Going Reactive: Eine Einführung in die reaktive Programmierung

Benedikt Stemmildt

November 04, 2019
Tweet

More Decks by Benedikt Stemmildt

Other Decks in Programming

Transcript

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

    View Slide

  2. 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?

    View Slide

  3. BENE
    Developer
    @slashbene

    View Slide

  4. Y? Theory Code
    THREE THINGS

    View Slide

  5. Y? Theory Code
    Y?

    View Slide

  6. ANCIENT
    HISTORY

    View Slide

  7. NOW

    View Slide

  8. THE SLUG

    View Slide

  9. THE SLUG – BATCHING

    View Slide

  10. THE SLUG – THREADS

    View Slide

  11. THE SLUG – SCALING

    View Slide

  12. Y? Theory Code
    THEORY

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  16. A STREAM

    View Slide

  17. STREAM EXAMPLES

    View Slide

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

    View Slide

  19. FROM PULL TO PUSH

    View Slide

  20. GET RID OF THE SLUG

    View Slide

  21. GET RID OF THE SLUG

    View Slide

  22. GET RID OF THE SLUG

    View Slide

  23. GET RID OF THE SLUG

    View Slide

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

    View Slide

  25. OBSERVABLE – MARBLE DIAGRAM

    View Slide

  26. OBSERVABLE – STATES

    View Slide

  27. OBSERVABLE – EXECUTION

    View Slide

  28. OBSERVABLE – EXECUTION SEQUENCE

    View Slide

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

    View Slide

  30. THE OPERATOR ONION

    View Slide

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

    View Slide

  32. VOODOO

    View Slide

  33. VOODOO – ZIP OPERATOR

    View Slide

  34. VOODOO – FLATMAP OPERATOR

    View Slide

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

    View Slide

  36. THE GOOD

    View Slide

  37. THE BAD AND THE UGLY

    View Slide

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

    View Slide

  39. View Slide

  40. View Slide

  41. Y? Theory Code
    CODE

    View Slide

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

    View Slide