Kotlin Operator Overloading – Working by Convention

Kotlin Operator Overloading – Working by Convention

Operator Overloading and Conventions in Kotlin Introduction Kotlin supports a technique called conventions, everyone should be familiar with. For example, if you define a special method plus in your class, you can use the + operator by convention, Kotlin’s approach to operator overloading. In this article I want to show you which conventions can be …

Read More Read More

Kotlin Coroutines Guide

Kotlin Coroutines Guide

Concurrent Programming in Kotlin – Kotlin Coroutines updated: 04/24/2018 Introduction and Motivation In this article, I’d like to share my gathered insights on Kotlin Coroutines with you and hope to give a comprehensive overview. The shown code runs with Kotlin version 1.2.40 and kotlinx.coroutines version 0.22.5. Kotlin coroutines are definitely one of the “bigger features” …

Read More Read More

Kotlin Function Literals with Receiver – Quick Introduction

Kotlin Function Literals with Receiver – Quick Introduction

Function Literals with Receiver – The Foundation for DSLs and many Library Functions Today I want to give a quick introduction to Function Literals with Receiver. This concept is what makes Kotlin great for designing Domain Specific Languages as we know it from Groovy for example. Also, Kotlins standard library includes many functions which many of you …

Read More Read More

Kotlin on the JVM – Bytecode Generation

Kotlin on the JVM – Bytecode Generation

Kotlin on the JVM – How can it provide so many features? Introduction What exactly is a “JVM language”? Isn’t only Java meant to run on the JVM? Kotlin provides many features that aren’t available in Java such as a proper function type, extension functions or data classes. How is this even possible? I’ve taken a deeper …

Read More Read More

Sealed Classes in Kotlin – An Explanation

Sealed Classes in Kotlin – An Explanation

Sealed Classes in Kotlin – An Explanation Today I came across Sealed Classes in Kotlin, which I had never heard of before. After some research I found that this concept is nothing new and is also available in Scala for example. So, yet another Scala feature JetBrains considered relevant and suitable for Kotlin? I like that 🙂 …

Read More Read More

Generic Types and Variance in Kotlin compared to Java

Generic Types and Variance in Kotlin compared to Java

Basics – What is Variance? Many programming languages support the concept of subtyping, which allows us to implement hierarchies that represent relationships like “A Cat IS-An Animal“. In Java, we can either use the extends keyword in order to change/expand behavior of an existing class (inheritance) or use implements to provide implementations for an interface. According to …

Read More Read More

Setup Vert.x Application written in Kotlin with Gradle

Setup Vert.x Application written in Kotlin with Gradle

I decided to write a Vert.x application in combination with Kotlin in a simple example because I’m really interested in Reactive Programming and love to use Kotlin. In this post, I will give some basic information on Vert.x as a tool set for writing reactive applications on the JVM and also introduce Kotlin a bit. In the end, I …

Read More Read More

Java Oracle Certification

Java Oracle Certification

Java Oracle Certification – Should you consider it? I took the OCA SE 7 Programmer I Certification exam two years ago in 2015, which I passed successfully with a score of 86%. This year I will be taking the second exam of this certification path called OCP SE 7 Programmer II. In this post I want to reflect why taking …

Read More Read More