Category Archives: Kotlin

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

Do we need a whole new ekosystem?

There’s a joke that if you ask a developer to code a program to process widgets, they’d rather build a domain specific language and tool stack first to make life easier for when they might one day build the software … Continue reading

Posted in Blog, Kotlin | Tagged , | 1 Comment

Kotlin Quick Tip: Annotation targets

If you — like me — are a sucker for reducing boilerplate and are using JSR-303 – Bean Validation (I use it as part of Spring Boot) then you may have noticed how it can help you reduce validation boilerplate … Continue reading

Posted in Blog, Kotlin | Tagged , | Leave a comment

JMockit extensions for Kotlin

Sometimes you have to deal with existing libraries… also libraries that do not provide out-of-the-box support for Kotlin (bastards!). What do you do in such a scenario? Write your own 😉 In one of my recent projects we were using … Continue reading

Posted in Blog, Kotlin | Tagged | 2 Comments