8
cynider
30d

Guys, What is the future of Kotlin? Is it a dead end? I mean many companies still use Java and google also released Dart for cross platform app development in previous years. Is there any point in learning Kotlin?

Comments
  • 5
    "Kotlin has been Google’s preferred language for Android app development since 7 May 2019."

    “Android development will become increasingly Kotlin-first,” Google writes in today’s announcement. “Many new Jetpack APIs and features will be offered first in Kotlin. If you’re starting a new project, you should write it in Kotlin; code written in Kotlin often mean much less code for you–less code to type, test, and maintain.”

    Seems like Google plans to keep it around.
  • 1
    honestly, tje good thing about the JVM(besides the large ecosystem and performance of the platform) is the plethora of languages that work on top of it. Kotlin is modern and good and it has many great features that you can implement to speed up your development. the thing with this is that for tutorials and stuff you are kinda shit out of luck in terms of porting Java code to it. i don't even bother with other jvm languages safe for scala and clojure(clojure being my favorite) and would just recommend to stick to Java. i like java, i know it well and use it from time to time at work.
  • 2
    😁 "kotlin is superior", "java will die now", "it's time to forget java and move to kt", ...

    These were happening like 2 years ago and played on my nerve very well. And now - this question. Ha!
    I guess it's a lesson learned. No matter how shiny new toys look, they will never push the big guns away!

    As for your question - I've never even bothered learning it and don't know what's it's future, sorry. I still prefer java very much.

    I know, not a very useful comment. Just wanted to be bitter sweet a lil bit :)
  • 2
    @netikras it is by all means useful man, use that work with it know of the value, Kotlin has good ideas, had it been the original implementation it would've been good, but it wasn't. i dunno why i would shift the way i do things in Java for Kotlin after all these years of knowing how to work well with Java. haha i really do love Java
  • 1
    @AleCx04 I do too :)
    and I'm not saying it's useless. Hell no! I'm just saying that no matter how nice and shiny the new thing it, it does not mean it's gonna push it's predecessors out off the spotlight.
  • 2
    You all are stupid for sticking to Java. HAHAHA. And I mean it unironically.

    Kotlin is far superior. Try kotlin, you'll find joy in programming again.
  • 2
    Also you can literally copy paste code Java code to Kotlin (assuming you are using IntelliJ) it will automatically convert it. Also IntelliJ can convert Java to Kotlin.

    If you know Java, there's virtually no learning curve in learning Kotlin if you're doing Kotlin the Java way. But there's a lot more features you will enjoy once you start using it regularly.
  • 1
    > Kotlin is modern and good and it has many great features that you can implement to speed up your development. the thing with this is that for tutorials and stuff you are kinda shit out of luck in terms of porting Java code to it.

    Seems like you haven't used kotlin at all, Kotlin is 100% interoperable with Java. Any java logic / java code will work in kotlin, any Java tutorial is relevant in Kotlin.
  • 0
    I honestly thought that devrant devs are above average. The comments in this thread proved me wrong.
  • 2
    Kotlin will stay. It is far more eloquent than Java. The beauty of Kotlin is that you can more eloquently do reactive and functional programming than you can do it with Java. Kotlin's apply.{ ... } extension simplifies the Builder pattern, Kotlin's data classes reduce the verbosity of POJOs and that you can't do inline functions in Java; making callbacks easier to write and understand in Kotlin. Also Kotlin has extensions where instead of inheriting entire classes with Java you just attach new functions/methods to existing ones. Much simpler don't you think?

    Kotlin has null safety comes to mind too. Sure you can have null safety in Java 9 and up I think but not everyone is using Java 9.
  • 0
    @peenoise awesome! glad we have a super pro like yourself in the community! it makes sense to menti shift an entire platform to a different language just for the sake of the added features whose only inpact is on the number of lines needed to express something! why did i not think of this!
  • 0
    Comprehension: 0

    100% interoperable: -1

    You can mix kotlin code with java code: -2
  • 1
    > it makes sense to menti shift an entire platform to a different language just for the sake of the added features whose only inpact is on the number of lines needed to express something!

    HAHAHAHA. If it makes development faster and produce less bugs and a more readable code, why resist improvement?
  • 0
    @peenoise aye syper pro, if you click on the reply tag you can respond to posts. Eloquence comes naturally to you I see! uncommon for super pros like yourself.

    Also, the wants and whines of one dude ain't gonna change the perception of a platform, you would know this by your years of experience in an enterprise level industry which I know a super pro much like yourself has!
  • 0
    @AleCx04 have you tried Kotlin for yourself though? Because this has been my experience in Kotlin, so much so that I only do Java for Android in legacy projects now: https://clearbridgemobile.com/java-...
  • 0
    > Also, the wants and whines of one dude ain't gonna change the perception of a platform, you would know this by your years of experience in an enterprise level industry which I know a super pro much like yourself has!

    Imagine being sarcastic like this while being a boomer.
  • 0
    @peenoise even better, imagine being dense enough to think that you can just insult an entire community for having a different opinion than yourself while at the same time not knowing how to use the platform for something as simple as a reply. you go super pro...
  • 1
    @jennytengsonM yes I have, and I do like Kotlin very much, still, and as nice as it is I put it right next to the rest of the entire JVM languages collection, from Clojure to Groovy and Scala in between etc. Main reason being that I am already good with Java, I have coded with Java for so long that I forgot how I learned it, I can do damn near anything I want and understand the code and idioms perfectly, to me it has the perfect level of verbosity. I see nothing wrong with using Kotlin, just not any reason to change to it, and code amount is definitely not one of them.
Add Comment