102582 (4) [Avatar] Offline
#1
The latest MEAP (last update: 2017-11-01) still focuses on RxJava 1.x [page 12], not covering RxJava 2.
Is that going to be the case although Android specific bindings for RxJava 2 already exist?

Thanks!
supotuco (29) [Avatar] Offline
#2
I don't think it should have a substantial effect.
102582 (4) [Avatar] Offline
#3

According to https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0, there's quite a bunch of differences.
supotuco (29) [Avatar] Offline
#4
Do you have a specific use case in mind?
102582 (4) [Avatar] Offline
#5

Honestly, when/if this book hits the bookstores some day, I wouldn't buy it unless it uses the latest stable version of RxJava, which more likely is RxJava 2.x than 1.x based.

supotuco (29) [Avatar] Offline
#6
I would say the differences between RxJava 1 & 2 are subtle and probably will not come up in the book. I'll try to update if I notice anything substantial.
supotuco (29) [Avatar] Offline
#7
So far, Ch 1- 3 do not distinguish between RxJava 1 or 2
For RxBinding use https://github.com/JakeWharton/RxBinding
Don't use the Jack compiler, it is deprecated. Android Studio 3.0 supports Java 8 Lambdas (not Streams)
supotuco (29) [Avatar] Offline
#8
Ch 4 Difference, subscriptions

RxJava 1.x has
Subscription


RxJava 2.x has
Disposable
supotuco (29) [Avatar] Offline
#9
Another difference is that in RxJava 1 it seems like you could add an unsubscribe callback to a subscription. In RxJava 2 see the source code for the RxJava binding to get an idea how this can be done
Alexander Gherschon (7) [Avatar] Offline
#10
Even if the concepts are the same, why not align the book with the latest stable version?
It feels like we should still consider RxJava 1 in new projects by not addressing that point...
supotuco (29) [Avatar] Offline
#11
Alexander Gherschon wrote:Even if the concepts are the same, why not align the book with the latest stable version?


It is a book and RxJava 2 is relatively new. I assume he started writing before they updated.

Alexander Gherschon wrote:It feels like we should still consider RxJava 1 in new projects by not addressing that point...



RxJava 1 will be deprecated in March 31, 2018 https://github.com/ReactiveX/RxJava
472470 (3) [Avatar] Offline
#12
I totally agree: I wouldn't buy a book which still uses RxJava1 in 2018
supotuco (29) [Avatar] Offline
#13
The architectures and principles presented in the book are still valuable.
supotuco (29) [Avatar] Offline
#14
now it is Rx Java 2.