Author: Anton Rutkevich

Null-safe network response in Kotlin

One of the Kotlin’s best features is null safety.
It gives us compile-time knowledge of where null can be and where not. While this works perfect in pure Kotlin code, null-safety cannot be guaranteed when Java interoperation begins. There are many use-cases of Java-interop and just as many ways to increase the level of safety when dealing with it. One of the most common use cases is network communication. Let’s see how we can make it safe.

Continue reading »

Debug logging in Kotlin

There are many logging libraries for Android, but all of them have one common issue. They all have an impact on production performance to some extent. Let’s see how big this impact can be and how can it be minimized in Kotlin language.
Continue reading »