Kkigyainkigya.hashnode.dev·May 2 · 19 min readThe Dangerous Side of Kotlin ResultKotlin Result looks very useful. We have an operation that can fail: val user = api.loadUser() We wrap it with runCatching: val result = runCatching { api.loadUser() } And that is it. No big try10
Kkigyainkigya.hashnode.dev·May 2 · 12 min readDon't Bury Your Backing PropertiesIn Android ViewModels, we often use a backing property. This is the common pattern where we have one private mutable field and one public read-only property: private val _uiState = MutableStateFlow(Ui10