How to use Dagger 2 on Android with Kotlin

Virtually everyone who wants to create code on Android in a decoupled and easy-to-test way, resorts to Dagger sooner or later. Although there is something that works a bit differently when setting up Dagger in Kotlin, most of it is quite simple, and in a few steps I’m going to show you here today. Also be […]

Read More

Working with nulls in Kotlin

NullPointerException rings a bell to you? Sure you’re tired of controlling that exception over and over in your apps, but what if I told you that using Kotlin you can forget them? It had taken me too long to write an article to one of the most important parts of Kotlin: the treatment of nullity. Tony […]

Read More

How lambdas work in Kotlin

How are you doing with Kotlin? This time you’re going to say goodbye to the interfaces with a single method, like the setOnClickListener, and instead you’re going to use lambdas. Although I spoke a little about it in another article, I’d like to explain in depth how lambdas work in Kotlin, and how they transform the […]

Read More

Kotlin Operator Overloading

Another day, another article! This time you’ll discover how the Operator Overload works in Kotlin. By overloading operators, you can create a more semantic code that will be easier to read and maintain. In Kotlin, as in every language, we have predefined operators to perform certain operations. The most typical are the addition (+), subtraction (-), […]

Read More

Kotlin Property delegation

This time I bring you a pretty interesting article for making your properties much more powerful! With properties delegation, an object will be in charge of returning and setting the value of your properties, which will let you do really cool things. Check the article today for some examples: As we’ve seen in previous articles, properties need […]

Read More