Hello RxSwift! - Beginning RxSwift with iOS 11, Swift 4, and Xcode 9

preview_player
Показать описание
Learn what are the goals of RxSwift, compare the pros and cons of learning and using RxSwift, and become familiar with the foundation of RxSwift: the observable.

View the full course over here:

---

We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!

---

About Reactive Programming from Wikipedia:

In computing, reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. With this paradigm it is possible to express static (e.g. arrays) or dynamic (e.g. event emitters) data streams with ease, and also communicate that an inferred dependency within the associated execution model exists, which facilitates the automatic propagation of the changed data flow.

For example, in an imperative programming setting, {\displaystyle a:=b+c} a:=b+c would mean that {\displaystyle a} a is being assigned the result of {\displaystyle b+c} b+c in the instant the expression is evaluated, and later, the values of {\displaystyle b} b and {\displaystyle c} c can be changed with no effect on the value of {\displaystyle a} a. On the other hand, in reactive programming, the value of {\displaystyle a} a is automatically updated whenever the values of {\displaystyle b} b or {\displaystyle c} c change, without the program having to re-execute the statement {\displaystyle a:=b+c} a:=b+c to determine the presently assigned value of {\displaystyle a} a.

Another example is a hardware description language such as Verilog, where reactive programming enables changes to be modeled as they propagate through circuits.

Reactive programming has been proposed as a way to simplify the creation of interactive user interfaces, (near) real time system animation.

For example, in a model–view–controller (MVC) architecture, reactive programming can facilitate changes in an underlying model that are reflected automatically in an associated view.[1]

About RxSwift (from GitHub):

Rx is a generic abstraction of computation expressed through Observable-Element interface.

This is a Swift version of Rx.

It tries to port as many concepts from the original version as possible, but some concepts were adapted for more pleasant and performant integration with iOS/macOS environment.

Cross platform documentation can be found on ReactiveX.io.

Like the original Rx, its intention is to enable easy composition of asynchronous operations and event/data streams.

KVO observing, async operations and streams are all unified under abstraction of sequence. This is the reason why Rx is so simple, elegant and powerful.
Комментарии
Автор

Good videos.
Advice - Look in the camera while recording videos instead of reading a screen. Interest is lost in mid-way otherwise

yashkhandha
Автор

I hate RX Swift! it's just makes everything complicated &

TheAhmadReza
Автор

Try adding some background music, because videos sound kinda creepy​

redsun