Published inProAndroidDevViewModels using Compose: MutableStateFlows or MutableStates?State hoisting is an important concept useful to make a Composable stateless (and so easily reusable). The official Compose documentation…Sep 30, 20213Sep 30, 20213
Published inProAndroidDevDagger dependencies beyond the basicsDagger is one of the most polarizing subjects in the Android community, either you love it, or you hate it. Some developers love it and…Apr 8, 20202Apr 8, 20202
Published inProAndroidDevFrom Dagger components to manual dependency injectionDagger is a great framework that has changed the way we have written Android apps in the latest years. Using Dagger we don’t need to write…Oct 2, 20196Oct 2, 20196
Published inGoogle Developer ExpertsImplementing Dependency Inversion using Dagger componentsThe SOLID principles were introduced for the first time by Robert C. Martin in the early 2000s. This paper explains the five principles…Jun 12, 20192Jun 12, 20192
Published inProAndroidDevManaging exceptions in nested coroutine scopesCoroutine scopes are the latest concept introduced to the Kotlin coroutines library before the 1.0 release. Scopes are really useful to…Apr 1, 20192Apr 1, 20192
Published inProAndroidDevSimpler Kotlin class hierarchies using class delegationBig class hierarchies are out of fashion, an item of the book Effective Java written by Joshua Bloch suggests to favor composition over…Feb 27, 20197Feb 27, 20197
Published inProAndroidDevUnidirectional Data Flow using CoroutinesOver the years the typical architecture of an Android application has changed a lot, from the first apps where all the logic was in the…Oct 1, 201810Oct 1, 201810
Published inProAndroidDevAsync code using Kotlin CoroutinesKotlin coroutines allow to write asynchronous code in a familiar way, the structure of the code doesn’t change if you compare it with…May 23, 20186May 23, 20186
Published inProAndroidDevCustom attributes using BindingAdapters in KotlinUsing the Android data binding framework it’s easy to define a custom attribute that can be used in a layout files. It’s just a static…Jan 29, 20188Jan 29, 20188
Published inProAndroidDevKotlin delegates in Android development — Part 2Architecture components: ViewModel and LiveDataJul 11, 20171Jul 11, 20171