Introduction to Kotlin

The material used during the talk (slides, etc.) can be found here. On the 13th of June 2019 Sebastian Aigner, Education Advocate at JetBrains, visited to enlighten us about everything related to Kotlin.

In short, Kotlin is a concise programming language, designed to be used for multiple platforms and adhering to multiple paradigms.

For example, this is a "Hello world!" program written in Kotlin:

fun main(){
    print("Hello world!")
}

On the one hand Kotlin is object-oriented, but on the other hand offering, amongst other features, higher-order functions, making the language functional as well. Furthermore, Kotlin is Null-Safe:

fun main(){
    val a : String? = null //a is a nullable String with value null
    print(a?.length)
}

Thanks to Null-Safety the code above will compile and not crash at runtime.

Now for the multi-platform characteristic of Kotlin. One could write code for a project, which will then run on a desktop computer and then add to that same project a little more platform-specific code so one may run it on Android, iOS or in the browser.

All these and more features were not just explained, but also demonstrated in an extensive Live-Coding-Session by solving the Fizz-Buzz Test and making the Game of Life.

Even after the talk many questions on various details about Kotlin arose, which were eagerly answered. All that is left to say after such an informative and entertaining talk is we are happy we could once again welcome JetBrains to our university and we hope this will not be the last time, as some of us still need to complete their merchandise collection.