In a Bad State? Beat It with Enums

Last updated: 4 months 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.


UIKonf Friendly Commenter
3 months

Probably it makes sense to cooperate with because they have a very similar topic?

Log in to comment