hello friends, Kotlin on the server is great solut...
# server
j
hello friends, Kotlin on the server is great solution which is sadly not very common in France where I work. My company tasked me with writing a series of articles about the topic to create about awareness about the topic, hopefully more clients too. When I write, I love to start with what my readers have in mind 🤔 Could you share with me the most frequent questions / misconceptions / main things people are curious about with Kotlin on the server ?
example of great questions I’ve heard “is there an equivalent of Spring Boot on the server ?” “how hard is it for a Kotlin/Android dev to move to the backend ?” “is it better to run stuff on the JVM or use a solution like Kotlin Native to avoid that overhead ?”
a
Misconception: Kotlin is (just) for Android
âś… 6
👍 1
n
hey, i have written something similiar java vs. kotlin in 2019: https://de.slideshare.net/slideshow/kotlin-150464748/150464748
j
Thanks!
p
performance of bytecode generated by Java vs Kotlin Fun story: I once talked to a guy from a big company, they tried Kotlin but they observed a huge performance drop so they went back to Java because they assumed Kotlin is inherently slower. After digging deeper, it turned out it was because they started using data classes which by default implement
equals
correctly, in particular by delegating to
equals
of classes that belong to the top-level data class. Their object hierarchies were huge, and apparently before switching to Kotlin they didn't do the full comparison, or maybe it was a mistake that they used
data
classes (vs. regular classes). Bottom line: know the tools you use to avoid surprises
🤔 3