A View State Machine for Network Calls on Android

GDG San Francisco Android
Thu, Dec 7, 2017, 6:00 PM (PST)

About this event


Amanda Hill
Senior Android Developer at Thoughtbot

A not-at-all-recent grad from Cornell University, Amanda was born and raised in NYC but is now living with several houseplants in SF. She loves street vendor hot dogs, white sneakers, and taking pictures of food. She was the lead Android Dev at Venmo before moving over to the world of consulting where she now works at thoughtbot.

Topic of the night:

A View State Machine for Network Calls on Android

Using Kotlin’s sealed classes, we can make a state machine for all UI-related to network calls. The reality of ever-changing design specs can, at times, be frustrating and miserable, but rather than focus on the negatives I like to think that it can also be a fun challenge in how we approach development. So today I am going to share some improvements I made to how I handle network requests in Android development to protect against UI changes.