Getting started with RxSwift and RxCocoa

时间:2020-10-17 07:19:32
【文件属性】:

文件名称:Getting started with RxSwift and RxCocoa

文件大小:746KB

文件格式:PDF

更新时间:2020-10-17 07:19:32

RxSwift, RxCocoa

Getting started with RxSwift and RxCocoa It’s great when code does exactly what you tell it to (unlike my cat). Change something in the program, tell the code to update, and it does. Good code! Most programming in the Object-Oriented era has been imperative like that: Your code tells your program what to do and has many ways to listen to changes—but you generally must actively tell the system when something changes. That’s fine as far as it goes, but wouldn’t it be even better if you could set things up so that when something in your app changes, the code updates automatically? That’s the basic idea of reactive programming: your application can react to changes in the underlying data without you telling it to do so directly. This makes it easier to focus on the logic at hand rather than maintaining a particular state.


网友评论