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
Kotlin Android Extensions: Say goodbye to findViewById

Kotlin Android Extensions: Say goodbye to findViewById

If you've been developing Android Apps for some time, you're probably already tired of working with findViewById in your day-to-day life to recover views. Or maybe you gave up and started using the famous Butterknife library. If that's your case, then you'll love...

read more
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
Kotlin for Android Developers

Kotlin for Android Developers

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