Kkigyainkigya.hashnode.dev10The Dangerous Side of Kotlin ResultMay 2 · 19 min read · Kotlin 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 tryJoin discussion
Kkigyainkigya.hashnode.dev10Don't Bury Your Backing PropertiesMay 2 · 12 min read · In 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(UiJoin discussion