Slide 14
Slide 14 text
Why to use RxSwift? Benefits and use cases
https://medium.com/@leandromperez/why-use-rxswift-a176b553a705
https://applikeysolutions.com/blog/rxswift-benefits-and-use-cases
Multi-threading is simplified.
The structures provide different ways of
publishing information. For instance, a
PublishSubject or a BehaviorSubject. They are
different ways of channeling events. The
operations transform, decorate, compose, etc, the
information. Like map, filter, concat, etc. The key is
that everyone can use the same structures and
operations. No matter what they put in them.
Modular Code?
Reactive programming is a way of working, it’s a
design pattern, or a set of them for all that
matters. You can create reusable compassable
components because of the standard structures
and operations. The same standardization comes
in different languages and platforms. So If you
learn Reactive Programming in Swift, you can take
it with you to another platform and language.
Multi-platform?
Using RxSwift, you can react to changes on different
threads. You do this with a lot less code, less
complexity, less bugs. You can listen to an event on
the main thread and react in background. Finally you
can go back to the main thread to show the results.
The resulting code can be very simple: you observeOn
different Schedulers.
A t t i a M o @AttiaMoTheDev