Kotlin

Kotlin is a functional language created by Jetbrains that can be used to boost Android development. 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

Take Realm to the next level with Kotlin

When someone asks me what I like the most about Kotlin, I find it hard to highlight a single feature. Data classes, lambdas, type inference, delegates... all of which entail a complete series of significative improvements which makes the difference with respect to...

Ninja Functions in Kotlin. Understanding the power of generics (KAD 12)

The combined use of several Kotlin features mixed with the use of generics allow to create functions that will greatly simplify your code, while maintaining its readability. There are several functions included in the Kotlin library that are really useful, and once...

Functional operations with collections in Kotlin (KAD 11)

I must admit that, for me, one of the most frustrating things when writing Java ccode is the list handling. Java 8 has some improvements in this respect with Streams, but the syntax in Kotlin, thanks to what we saw earlier on how to compact the code when we have high...

Data Classes in Kotlin: save a good bunch of lines of code (KAD 10)

We've already seen the classes in an earlier article, but data classes go a little further in helping us simplify our code. What are data classes? A data class is a class that only contains state and does not perform any operation. The advantage of using data classes...

Using Anko to run background tasks with Kotlin in Android (KAD 09)

Anko is an Android library written in Kotlin by Jetbrains, that can be used for a lot of different stuff. Its main feature is to create views by code using a DSL. Although this can be very interesting, the truth is that I got along very well with XMLs for so long. So...

Extension functions in Kotlin: Extend the Android Framework (KAD 08)

Extension functions are a really cool feature that Kotlin provides, and that you'll find yourself using a lot when writing Android Apps. We have to admit that the Android Framework sometimes makes things a bit difficult, and in Java the only solution we have left is...

Custom Views in Android with Kotlin (KAD 06)

When we saw the article about classes, you may remember that in general only one constructor is used. This is a problem for creating custom views. The Android framework expects to have several constructors available based on where and how the view is being created (by...

Kotlin integrations with Android SDK (KAD 05)

Kotlin not only simplifies the code you create on this language, but also the Java code you use from Kotlin. How does this work? It simply uses some generic structures and give them a more "Kotlin" feel. In this article, you'll see some examples, and how it improves...

Kotlin Android Extensions: Say goodbye to findViewById (KAD 04)

You're probably tired of working with findViewById in your day-to-day life to recover Android views. Or maybe you gave up and started using the famous Butterknife library. Then you'll love Kotlin Android Extensions. Kotlin Android Extensions Kotlin Android Extensions...

Classes in Kotlin: More power with less effort (KAD 03)

Classes in Kotlin are as simple as possible so that you can express the maximum amount of logic with the less code possible. I'll show quickly how you can start writing Kotlin classes, and the differences with Java classes. 1. Declare the class...

Kotlin for Android Developers

Kotlin for Android Developers

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

Get it Now!