Kotlin

Kotlin is a functional language created by JetBrains that can be used to boost your Android productivity. Lambas, null safety, extension functions and a lot of breaking features make Android development simpler and easier. Start learning today!
Get the book!Don't miss new posts
Sealed classes in Kotlin: enums with super-powers (KAD 28)

Sealed classes in Kotlin: enums with super-powers (KAD 28)

Sealed classes in Kotlin are another new concept we didn't have in Java, and open another new world of possibilities. A sealed class allows you to represent constrained hierarchies in which an object can only be of one of the given types. That is, we have a class with...

read more
Dialogs and alerts on Android using Anko and Kotlin (KAD 24)

Dialogs and alerts on Android using Anko and Kotlin (KAD 24)

Creating alerts and dialogs on Android is a relatively simple task thanks to the builder, but due to the verbosity of the language it usually becomes something quite illegible. In Kotlin, by the mere fact of the lambdas, it simplifies us a little to understand what is...

read more
How to mock final classes on Kotlin using Mockito 2 (KAD 23)

How to mock final classes on Kotlin using Mockito 2 (KAD 23)

One of the most common issues for Kotlin, as we talked about in a previous article, is that all classes and functions are closed by default. This means that if you want to mock a class (something that may be quite common in Java testing), you need to either open it...

read more
Unit tests on Android with Kotlin (KAD 22)

Unit tests on Android with Kotlin (KAD 22)

Of course, Kotlin also allows us to do unit tests in a very simple way, and very similar to what we're used in Java. There are some small complications when we use libraries like Mockito, but we'll see some tricks to make it easier. Unit tests in Kotlin Although the...

read more
How to use Retrofit on android with Kotlin (KAD 21)

How to use Retrofit on android with Kotlin (KAD 21)

This is just one more example about how in Kotlin we can continue to use the same libraries we've always used in Java for Android. Retrofit is a library that greatly simplifies doing requests to an API, and in this case I'm going to teach you how to integrate it with...

read more
Kotlin for Android Developers

Kotlin for Android Developers

Start learning Kotlin today with this book by creating an Android App from ground up.