Category Archives: Blog

Compiler Hinting with Kotlin Contracts

Kotlin’s built-in null-safety makes it easy for us to write code that’s less error-prone and less susceptible to the unwanted and unexpected NullpointerException at runtime. We can do a lot to make sure it doesn’t happen, but sometimes there’s no way around … Continue reading

Posted in Blog, Kotlin | Leave a comment

Let’s stay away from silver bullet claims

Apparently everybody’s  favourite JVM language beat Java in a recent code-smell contest. The Register reported on a paper by Bruno Gois Mateus and Matias Martinez who had carried out an extensive survey of the rate of Kotlin usage in recent … Continue reading

Posted in Blog, Kotlin | Leave a comment

Going functional and fullstack with Spring Fu and Kotlin

Spring Fu is an experimental Kotlin micro-framework that makes it easy to create lightweight Spring-powered applications with functional APIs instead of annotations. Fu is for functional API, but that’s also a wordplay with the -fu suffix which means skill, the … Continue reading

Posted in Blog, Kotlin | Leave a comment

Optional Kotlin

Last week I was working on a code base which had been partially converted from Java to Kotlin. The converted Java code base was making extensive use of java.util.Optional. The use of Optional might be helpful in situations where you … Continue reading

Posted in Blog, Kotlin | Leave a comment

Kotlin properties – from basic to lazy

Kotlin has many things going for it, with one of the main qualities being its built-in null-safety. This guarantees that properties will always have a non-null value at runtime, greatly reducing the risks of coding errors and NullpointerExceptions. In languages … Continue reading

Posted in Blog, Kotlin | Leave a comment