4
4 Comments

Kotlin anyone

Is anyone using Kotlin on the backend? I am very curious to hear/share experiences. What's the biggest pain you have with it and which framework are you using?

on January 27, 2020
  1. 1

    I used Kotlin with Undertow for a production backend a few years ago. It was a great experience. JVM stability + Kotlin language power.

    1. 1

      I saw you mainly use go nowaday, how does it compare? I currently use Kotlin on Vert.x, generally happy but there a few aspects to improve.

      1. 1

        It's better in some ways and worse in others. Some key differences worth calling out:

        • Go's package model much simpler and easier to deal with than Maven which is a mess. pom files are the bane of my existence. Simply "go get" a package and it is added to your go.mod for reference.
        • Kotlin's collection library is by far the best I've used in any language. Go has no such helper methods so it's a tiny bit annoying do things like find, map, any, etc.

        In general, I've enjoyed both. Go has a larger community at the moment but Kotlin has the benefit of running on JVM as well as having first class support for Android development, so more widely applicable knowledge.

        1. 1

          Ah Maven, I've been having some fun with a couple of BOMs and parent POMs in my project in the last few weeks...
          To be fair the Maven stiffness brings some stability when I work on npm instead, I am always fearful when touching dependencies.