Blog

clean-architecture-android

Clean architecture for Android with Kotlin: a pragmatic approach for starters

Clean architecture is a topic that never gets old in the Android world, and from the comments and questions I receive, I feel it’s still not very clear. I know there are tens (or probably hundreds) of articles related to clean architecture, but here I wanted to give a more pragmatic/simplistic approach that can help …

Clean architecture for Android with Kotlin: a pragmatic approach for starters Read More »

MVP for Android: how to organize the presentation layer

[et_pb_section admin_label=”section”] [et_pb_row admin_label=”row”] [et_pb_column type=”4_4″][et_pb_text admin_label=”Text”]MVP (Model View Presenter) pattern is a derivative from the well known MVC (Model View Controller), and one of the most popular patterns to organize the presentation layer in Android Applications. This article was first published in April 2014, and been the most popular since then. So I’ve decided …

MVP for Android: how to organize the presentation layer Read More »

Listeners with several functions in Kotlin. How to make them shine?

One question I get often is how to simplify the interaction with listeners that have several functions on Kotlin. For listeners (or any interfaces) with a single function is simple: it automatically lets you replace it by a lambda. But that’s not the case for listeners with several functions. So in this article I want …

Listeners with several functions in Kotlin. How to make them shine? Read More »

Function references in Kotlin

Function references in Kotlin: use functions as lambdas everywhere

Function references are another of those great improvements that we get with Kotlin, which are kind of exotic when we come from Java. You already know that Kotlin supports functions as a type, what means that you can save a function in a variable, use it as another function argument, or even make that a …

Function references in Kotlin: use functions as lambdas everywhere Read More »