Feb Event: Practical RxJava with an Air Cannon

GDG Philadelphia
Wed, Feb 22, 2017, 6:00 PM (EST)

About this event

Lightning talk: Bill Zangardi on Google Smart lock

Main talk: Nick Dipatri talks about solving API callback hell with RxJava and RetroLambda

Real world applications often require complex API interactions. A typical API call sequence might include: “First initialize the API client if not done already. Then retrieve these model objects. For each that exists, do additional ‘get’ calls, otherwise, make a ‘create’ call.” Implementing this logic with imperative programming riddles code with nested branching and anonymous inner-class callbacks. The results are often unreadable and unmanageable.

I will demonstrate how RxJava and RetroLambda can solve this "callback hell" and once again make our code a thing of beauty.

In this real-world example, an Android phone will remote-control an air cannon that shoots soft, fuzzy projectiles across the room!