Guest User

Untitled

a guest
Mar 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. RxSwift
  2. =======
  3.  
  4. Introduction
  5. ------------
  6.  
  7. **What is it?**
  8.  
  9. Is a library for handling asynchronous and event-based code using observable and sequences. In other words help you to write async code more easily and organized.
  10.  
  11. **Asynchronous programming**
  12.  
  13. This methodology tries to address the following issues:
  14.  
  15. 1. ***State and Shared mutable state*** - The stored and temp data, cache and any stuff that was fetched from cloud service. The sum of these represent the state of your app. With RxSwift you can manage the state, especially when shared between async components.
  16.  
  17. 2. ***Imperative programming*** - Is a paradigm that uses statements in order to change the app's state.
  18.  
  19. 3. ***Side effects*** - Is any change to the state outside the current scope.
  20.  
  21. 4. ***Declarative code*** - In imperative programming you change the **state** as you wish. Otherwise in functional programming you don't cause **side effects**. Declarative code lets you define behavior and the RxSwift will run any time there's relevant event and provide an immutable and isolated data.
  22.  
  23. 5. ***Reactive system***
  24. - ***Responsive*** - UI up to date with app state.
  25. - ***Resilient*** - Behavior defined isolated and provides error recovery.
  26. - ***Elastic*** - The code handle workload (Amount of process at given time).
  27. - ***Message Drive*** - The code use message communication for improve reusability and isolation, decoupling lifecycle and implementation of classes.
Add Comment
Please, Sign In to add comment