RxSwift

 RxSwift

Using RxSwift in real life applications. How to start and what are the pros and cons.

6c9d1e82615877b0b2866f82cbf5f557?s=128

Kristaps Grinbergs

February 08, 2018
Tweet

Transcript

  1. RxSwift Introduction to reactive programming Kristaps Grinbergs @fassko

  2. None
  3. Imperative programming • Saved state • Order of execution •

    Side effects
  4. In computing, reactive programming is a programming paradigm oriented around

    data flows and the propagation of change. Wikipedia
  5. Reactive programming is programming with asynchronous data streams

  6. Reactive programming • Asynchronous • No saved state • Functional

    • Responsive
  7. ReactiveX An API for asynchronous programming with observable streams. •

    Microsoft (Rx.NET) - 2009 • Many languages • RxSwift - 2015
  8. Rx components • Observable • Observers • Schedulers

  9. None
  10. None
  11. None
  12. Observables Next Completed Error

  13. Operators Filtering Transforming Combining

  14. None
  15. None
  16. RxMarbles

  17. None
  18. UI bindings RxCocoa

  19. None
  20. Rx extensions Almost for everything

  21. + Agile and reusable code Thread safety Eliminate state from

    code Testing Well tested, with large community and extensions
  22. - Steep learning curve Change previous practices Debugging Over-reactive

  23. None
  24. None