24-Dec

Kotlin

Happy holidays

One article a day for twenty-four days from nine authors! Merry christmas and happy holidays from all of us.

2 min read

·

By Vegard Veiset

·

December 24, 2020

It’s been a weird year, but something never changes, and this year Vegard kicked off the calendar with Immutability. Some things do change though and Nicklas took us through the Kotlin changelog.

This year we’ve looked at many of the Kotlin features and resources for learning Kotlin. Matias taught us how to delegate and destruct, Jobi knitted an article of strings templates and demystified the magic behind the Kotlin collections. Eivind explained Operator Overloading and how we can add new operators to our code.

We’ve taken a look at some of the nice and naughty libraries we can use with Kotlin. Tia took a look at the naughty Gson library and the nice Spek Framework. Kristoffer taught us how we can use MockK for figuring out if something is nice or naughty and Nicklas showed us how we can make Kotlin write the code for us with Kotlinpoet.

We’ve had some good discussions. We’ve written about when and why to use let, apply, run and also and Eirik explained the difference between companion objects and top level vals.

Sondre has given us two fantastic introductions to the Kotlin tooling integrated with Intellij. How to use the Kotlin REPL and how to better understand the Christmas mysteries using the bytecode viewer and decompiler.

Kotlin has introduced a lot of new things over the last few years and we’ve taken a closer look at some of these. Contracts to help the compiler better understand our intent, functional Interfaces as a better alternative to typealiases. It's (Christmas) Time for Kotlin when Jobi explains the new Kotlin time API and Nicklas explains the new serialization library.

We’ve also deep dived in some of the more magical parts of Kotlin. Matias gave us insight into type classes, Sondre about the reified keyword and Nicklas on how to write your own domain specific languages.

All that's left now is to wish you all happy holidays. Happy holidays!