In a Bad State? Beat It with Enums

Last updated: 19 days ago

One simple view controller can jump between "Loading", "Ready", "Empty" and "Error" states. How much boilerplate have you written in the past to handle these state changes? How error-prone can this state management be?

In this talk, I'll share a reactive approach to state changes using modern languages like Swift and Kotlin. Using enums and property observers will help you defeat null objects, unnecessary optionals, and other symptoms of invalid state. You'll save time by avoiding the writing of error-prone boilerplate, and you'll have fun doing it.

Comments

UIKonf Friendly Commenter
3d61591600309f
7 days

Probably it makes sense to cooperate with https://cfp.uikonf.com/proposals/33 because they have a very similar topic?

Log in to comment