Working with nulls in Kotlin

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 Read More

How lambdas work in Kotlin

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 Read More

Kotlin Operator Overloading

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 Read More