Hacker News new | ask | show | jobs
by walrus1066 2736 days ago
Kotlin, our company had recently turned into a java shop, and I was literally tempted to throw in the towel because I'm used to C# & python, so the boilerplate was really unpalatable.

Then one of our team wrote a service in kotlin, and we never looked back, I had my type inference, extension methods & null safety back, along with really strong immutability features, pure functions to boot.

It is such a pleasure to work with, it's in my opinion the pinnacle of traditional statically typed OO language (C#, java etc)

EDIT: now, all new services in our company are written in kotlin, it got grass roots adoption in every team (bar one which came from a much more old-school java background)

2 comments

I really liked Kotlin too. Which web framework do you recommend using with Kotlin (assuming you do webdev with Kotlin)?
Ktor, it's working really well, only downside is limited openAPI/swagger support, i.e. Schema first or code first code/schema generation.
Have you tried the `kotlin-server` generator in the OpenAPI Generator project (https://github.com/OpenAPITools/openapi-generator)?

Disclosure: I'm the top contributor to OpenAPI Generator.

Kotlin almost feels like a rebranded Swift.
Kotlin came out before Swift