Android reactive programming with RxJava by Ivan Morgillo

preview_player
Показать описание
In a world where there is a smartphone in every pocket, designing and building applications that can run smoothly and provide the User Experience that users will like it’s the only way to go. Reactive Programming style with RxJava will help you to beat Android Platform limitations to create astonishing Android Apps.

This talk will be a practical journey from basic Reactive Programming and Observer Pattern concepts to the main feature of RxJava, with practical code examples and a real-world app.

I'll show the audience how to create an Observable "from scratch", from a list or from a function we already have in our code base. Our listeners will learn how to filter an Observable sequence to create a new sequence containing only the values we want; they will learn how to apply a function to an Observable, how to concatenate, merge or zip Observables. I'll show how to enjoy RxAndroid Schedulers to overcome the threading and concurrency hell in Android.

I will close the talk with a practical example about RxJava + Retrofit, to easily communicate with a REST API.
Рекомендации по теме
Комментарии
Автор

Guys, you are amazing! I was on that stage 48 hours ago!!! :D

IvanMorgillo
Автор

Nice examples for most basic functions of rxJava :)

witoldsienski
Автор

There is one thing that bothers me about RxJava - most of the popular examples that are taught on the internet totally disregard any application architecture and code modularity - those huge operator chains concentrate networking, local storage, calculation operations and view knowledge all in the same method, in the same class... It is frightening. What I would do is put this code in an interactor (use case) object and call the necessary classes from their interfaces in order to preserve all types of operations in their right classes, so that the rx java operator chaining doesn't know how to connect to the network, how to convert or store datatypes, and how to display stuff in the view, but only call classes responsible about these stuff. I have never, however, seen anyone teaching RxJava do that, so it is either the case of absolutely everyone simplifying their examples for the sake of the presentation, OR what is scary to me, that RxJava cannot work like that (or the benefits from using it would be lost) and basically calls for disobeying any architectural methodologies and putting everything in a God class that does everything. Can someone point to an example where Clean Architecture is applied using RxJava? I am really sorry for asking this probably stupid question, but I am absolutely new to RxJava and wanted to know whether people who use it think it replaces the need for having an architecture.

MarcusAureliusSeneca
Автор

Great presentation Ivan, the topic you covered was very clear and understandable yet logical too. can we the Source code of this presentation and also we want some other real time examples coz there are very less amount of stuff for Android application development using RXJava(like MVP and other amazing stuff). Thank you :)

akashsrivastava