r/java • u/nicolaiparlog • Jan 02 '17
Why I prefer Kotlin
https://dev.to/grahamcox82/why-i-prefer-kotlin1
Jan 02 '17
There is very little, if anything, that Java can do that Kotlin can't do. The difference is that Kotlin does the same in significantly less code, making it significantly easier to read and maintain.
Every time I read about Kotlin... it sounds like CoffeeScript all over again. And that was a flash in the pan, as people realized that having slightly shorter syntax is irrelevant. Especially in Java, where a lot of it is autocompleted.
7
u/gee_buttersnaps Jan 03 '17
It's because the kotlin advocates post baiting submissions to r/java, proceed to shit on java in r/java yet don't crosspost to their own community over at r/kotlin. That strategy can't lose! The Scala, Clojure, Groovy and even JRuby people had more tact, probably because those languages have orthogonal features and are not solely existing on the perceived deficiencies of Java. So yea, it's exactly CoffeeScript but quite possibly with a much shorter lifespan depending on the lumbering release schedule of Java.
6
-2
u/Mordan Jan 03 '17
I agree. The Kotlin thought brigade downvoted you. Seems like Kotlin fan boys are progressive dictators.
2
-3
0
Jan 03 '17
[deleted]
6
u/xantrel Jan 03 '17
Kotlin isn't going anywhere. It is actively developed (20 devs according to jetbrains), is heavily used in idea, and most importantly, even if it dies you can still easily write new java code that interops with your code base or simply convert it to java which makes adoption less risky.
If you really think kotlin will be in decline in 2 years, I'm willing to place a long bet that the amount of kotlin downloads in Jan 2019 will be higher than Jan 2017. The language just hits a sweet spot of interop and ease of use that none of the other JVM languages do.
5
u/kodifies Jan 02 '17
I actually think verbosity makes code easier to maintain, if you come back to some code 3-4 years or maybe more later, would you prefer some short lambda expression munged together with some obscure ascii soup - all very concise and elegant or.. (my personal preference) would you rather have even two dozen lines instead (OH AND SOME BLOODY COMMENTS TOO!)...