DEV Community

Cover image for Is There an Equivalent of Spring Boot for Kotlin?

Is There an Equivalent of Spring Boot for Kotlin?

Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard on April 10, 2023

My career-related content is now open-source on GitHub. If you look at my DEV profile, or meet me in person at a Meetup, I am sometimes the kind o...
Collapse
 
dmahely profile image
Doaa Mahely

I agree there are a lot of misconceptions about Kotlin. I've had people ask me what I use at work and immediately assume I'm an Android developer when I say Kotlin. Plus, I see a lot more tutorials for Kotlin in mobile development than in web development.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard • Edited

KotlinConf just happened in Amsterdam and results are in: Kotlin is used two third of the time to do Android stuff, one third to do all other kind of stuff with a majority of that rest being backend stuff.
Obviously 2/3 is a lot, and no wonder, Android is a massive success story.
But the other third matters too and has a right to exist.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

This article blew up unexpectedly, but I'm very honored to have been featured on This Week in Spring - April 11th, 2023

Collapse
 
marianvarga profile image
marian-varga • Edited

Yeah, it's a shame everyone associates Kotlin with Android. SpringBoot with Android is just great...
With the current geopolitical situation the name is not the best PR though :(

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard • Edited

On the contrary, that's what courage looks like

blog.jetbrains.com/blog/2022/03/11...

Collapse
 
danielmpries profile image
Dan

Spring is big ecosystem and Boot generally builds on Spring's opinion's as it relates to their entire ecosystem. This isn't a bad thing . But if you want a different set of opinions take a look at micronaut.

Collapse
 
mi_native_nutt profile image
Mark

Actually Micronaut was a direct copy of spring. They didn't even actually change any of the documentation or package names at first. So basically you're using a lesser version of spring boot

Collapse
 
mi_native_nutt profile image
Mark

If you want something different then maybe look at q u a r k u s

Collapse
 
rytis profile image
Rytis

I've tried Kotlin, and honestly I didn't like the syntax. For some reason, I can't get behind types after arguments and functions, but maybe that's just me being old.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

If java isn't broken for you, don't fix it

Collapse
 
rytis profile image
Rytis

Exactly my thoughts. I like the verbosity and C style syntax

Collapse
 
mateuszstefek profile image
Mateusz Stefek

I couldn't care less about the syntax. Kotlin greatest features are:

  • null safety built into the type system (Java's Optional are a disaster)
  • named parameters of functions/constructors
  • default expressions for parameters
  • extension methods (OK, this is a syntax thing, but still great)
  • better type system for collections, promoting immutability

These eliminate 90% of boilerplate code Java is famous for.

Collapse
 
zaneschepke profile image
Zane Schepke

Quarkus

Collapse
 
illutax profile image
Illutax

This whole article should be: "Yes, there is Spring Boot for Kotlin, it's spring Boot."

Collapse
 
kilaka profile image
Alik Elzin

What about using coroutines with spring? With spring graphql?

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

I think you are missing the point of the article