Kotlin is a programming language made by JetBrains (the same company behind IDEs such as IntelliJ). I see it as “modern Java” because it significantly reduces boilerplate code and introduces patterns for writing more functional code.

Starting a new Project

Even though I’m not a big fan of Gradle (🙅 I Don’t Like Gradle), it’s still the build system I use for Kotlin.

Starting a new project can be done using

gradle init --type kotlin-application --dsl kotlin

Reading Resource Files

val fileContent = this::class.java.getResource("/html/file.html").readText()

Don’t forget to add / before the resource location! For example, if the file is resources/repositories.yaml then the resource URL is /repositories.yaml.

Charts

Kotlin has a system similar to Jupyter Notebooks, which is called Kotlin Notebooks. Charts can be rendered using Kotlin’s Plotting Library Kandy.

Other plotting libraries: