Day040 — RxJava

Jacky Tsang
2 min readJan 15, 2018

--

It is one of the topic I wanted to learn for so long. Today is finally the time. I have heard that it is difficult to pick up, but you won’t regret you did it. That statement is totally true. The best part of it is to streamline all the nested callbacks, making the code lean and readable.

Material

Below is the material I used to learn RxJava. If you are that kind of people that learn from watching talks, below link from Realm is the best way to do it. It suggests a learning path that will make you become a expert from beginner.

Also, I read a lot of written tutorials online. Below is the one that I think the explanation is clear and dense, but that is in Chinese and version 1 of RxJava. It gives me a good grasp of the concept so I could start using it.

Summarized version of above one:

Order matters

One important note is that order matters, especially RxJava allows changing thread. It could potentially introduce bugs like executing UI stuff on a non-UI thread. Below video discusses that at 36m25s.

Example code

The best practice to learn new things is to get your hands dirty. Check out below repo for example code.

--

--

No responses yet