Category: RxJava

Coroutines vs RxJava: The Way Forward with Asynchronous Programming for Android

So Google I/O 2019 just passed a couple weeks ago and to no surprise, in one of their very many talks, they brought up Kotlin’s new asynchronous feature: Coroutines. Coroutines in a nutshell for those who don’t know: They workaround the use of callbacks by making them into more sequential code through the use of…
Read more

Coroutine Basics: Asynchronous Programming with Kotlin

Exactly 21 hours ago from when I’m writing this sentence, I got a comment on my Essential Libraries February 2019 post telling me one of my entries was outdated for a 2019 list. If he said it was Butterknife, sure I’d probably agree (I admit that was an ass-pull). To my surprise however, he was…
Read more

Understanding RxJava Subjects and their Different Types

If you have any basic knowledge of RxJava, you’d know that an Observable is a stream ready to emit data when a Subscriber subscribes to it. A Subject is well, both an Observable and a Subscriber. It can subscribe to one or more observables, and can re-emit that data and possibly new data as well…
Read more

Android Architecture for the Simple Mind: MVVM (Model, View, View-Model)

If there’s one thing that had a drastic change in the way I develop apps, it’s learning about Android architecture. Sure, I learned a few libraries in my journey, RxJava, Firebase, Retrofit, and they all helped, but nothing completely changed the way I write code than, well, changing the fundamentals of how you write. Changing…
Read more

A Guide to Multithreading in RxJava

Following the finale of the Knowing your RxJava Operator Toolbelt series, you’d think that we’ve covered a huge part of the RxJava ecosystem, but well eurghuehue. C’est wrong! RxJava’s operators are only the surface of the library. Let’s go back to the roots of how RxJava describes itself on its website: A library for composing asynchronous…
Read more

Knowing your RxJava Operator Toolbelt 5: Utility Operators

Check out the rest of the series: Knowing your RxJava Operator Toolbelt 1: Creating Observables Knowing your RxJava Operator Toolbelt 2: Transforming Observables Knowing your RxJava Operator Toolbelt 3: Combining Observables Knowing your RxJava Operator Toolbelt 4: Filtering Observables RxJava is Java (and Kotlin’s) form of Reactive Programming, and thus Android’s too. It bestows the…
Read more

Knowing your RxJava Operator Toolbelt 4: Filtering Observables

Check out the rest of the series: Knowing your RxJava Operator Toolbelt 1: Creating Observables Knowing your RxJava Operator Toolbelt 2: Transforming Observables Knowing your RxJava Operator Toolbelt 3: Combining Observables Knowing your RxJava Operator Toolbelt 5: Utility Observables RxJava is Java (and Kotlin’s) form of Reactive Programming, and thus Android’s too. It bestows the…
Read more

Knowing your RxJava Operator Toolbelt 3: Combining Observables

Check out the rest of the series: Knowing your RxJava Operator Toolbelt 1: Creating Observables Knowing your RxJava Operator Toolbelt 2: Transforming Observables Knowing your RxJava Operator Toolbelt 4: Filtering Observables Knowing your RxJava Operator Toolbelt 5: Utility Observables RxJava is Java (and Kotlin’s) form of Reactive Programming, and thus Android’s too. It bestows the…
Read more

Knowing your RxJava Operator Toolbelt 2: Transforming Observables

Check out the rest of the series: Knowing your RxJava Operator Toolbelt 1: Creating Observables Knowing your RxJava Operator Toolbelt 3: Combining Observables Knowing your RxJava Operator Toolbelt 4: Filtering Observables Knowing your RxJava Operator Toolbelt 5: Utility Observables RxJava is Java (and Kotlin’s) form of Reactive Programming, and thus Android’s too. It bestows the…
Read more

Knowing your RxJava Operator Toolbelt 1: Creating Observables

Check out the rest of the series: Knowing your RxJava Operator Toolbelt 2: Transforming Observables Knowing your RxJava Operator Toolbelt 3: Combining Observables Knowing your RxJava Operator Toolbelt 4: Filtering Observables Knowing your RxJava Operator Toolbelt 5: Utility Observables So you’ve just read an introduction to RxJava (hopefully mine) and now you’re ready to get…
Read more

Hardly Comprehensive Introduction to RxJava: Observable Types, Backpressure, and Error Handling

RxJava is an ever increasing-in-demand tool for developers of many platforms even beyond Android. Its most attractive feature comes in the form of performing async operations without the use of callbacks. Instead, Observables and Observers are used in conjunction to emit data (once or multiple times) and include methods of their own to handle what…
Read more

Vanilla Firestore vs RxFirestoreKT

RxFirestoreKT is a great library for combining RxJava (Kotlin) and Firestore together, but what I noticed about Firestore is that it already contains many of RxJava’s advantages as it is. Firestore works asynchronously, it can map documents to POJO objects, and can keep a continuous stream of data flowing, handles errors well, and it does…
Read more

A Beginner’s Guide to RxJava using Firestore and RxFirestoreKt

In case you haven’t heard about RxJava, it’s a library for composing asynchronous and event-based programs using observable sequences for Java and Android apps. Making it excellent in conjunction with Firestore for things like say, responding to a change in the database and fetching the updated data while handling it on the right thread to…
Read more