Kotlin syntax is not similar to Java, it is actually similar to Scala. But compared to Java it is less verbose, which reduces the effort on the developer. Plus it interoperates with Java classes, so you can use Java libraries with it as well.People learning Kotlin, is it really worth investing time to learn the new Syntax of this language even though its very similar to Java?
Not very difficult, but you have to use it to get a feel for it.What is the learning curve?
Google has announced first class support for Kotlin, especially since the Oracle lawsuit. So, I see that it will be more common for Android apps (Arogya Setu app is written in Kotlin for example). But it is also good as a general purpose replacement for Java. Whether it gets more popular than Java that remains to be seen.What do you think about the future aspect of this language, will this become more common than Java or at least as much common as Java?
I am still not convinced about the verbose part. It seems like several steps are combined in a single step where as each line in java has a distinct purpose. and then its becomes easy to give one look and know what the program is going to do. I am obviously biased and so much used to Java that I found Kotlin shortcuts bit more difficult to remember.Kotlin syntax is not similar to Java, it is actually similar to Scala. But compared to Java it is less verbose, which reduces the effort on the developer. Plus it interoperates with Java classes, so you can use Java libraries with it as well.
I see.Not very difficult, but you have to use it to get a feel for it.
Nice. I didn't know this.Google has announced first class support for Kotlin, especially since the Oracle lawsuit. So, I see that it will be more common for Android apps (Arogya Setu app is written in Kotlin for example). But it is also good as a general purpose replacement for Java. Whether it gets more popular than Java that remains to be seen.
TBH at this moment, you will need to have some understanding of Java to effectively work with Kotlin. Technically you can still write verbose code with Kotlin if you wish for the original Java experience, but as you learn the shortcuts, you will find that coding in Kotlin is faster since you don't have to think about constructors, getters, setters, etc.It seems like several steps are combined in a single step where as each line in java has a distinct purpose. and then its becomes easy to give one look and know what the program is going to do. I am obviously biased and so much used to Java that I found Kotlin shortcuts bit more difficult to remember.
The best feature of Kotlin I think is that it reduces the verbosity of Java. The syntax is kinda different as well, but you can get used to it is as you write code. I personally find it much easier to write in Kotlin than Java because of the reduction of effort.One query How is Kotlin different from Java i mean is it less complicated than Java in syntax and all?
Java is fucking verbose, i hate a lot.. but its my goto language to use in coding interviews if i need complex data structures like hashmap. Kotlin usage isnt very widespread but you make it sound useful if it can use java classes natively.. Maybe I should try itKotlin syntax is not similar to Java, it is actually similar to Scala. But compared to Java it is less verbose, which reduces the effort on the developer. Plus it interoperates with Java classes, so you can use Java libraries with it as well.
Alright. Why verbose is a problem? I like that each statement in Java convey a clear message to the developer what exactly it does. It helps in understanding what previous dev has coded, a bit quicker. I am repeating this point again here I know. And of course a Kotlin dev will understand Kotlin code easily. But why verbose is a problem.
I want to know, how much time a dev saves by coding same logic in Kotlin instead of Java,
@Desmond David had you coded that CTC app in Java, how much extra time it would have consumed? Will you be able so save significant amount of time when you start adding complex features which involves lots and lots of coding??
No one can answer that but you. I only learn new language when I need to, or my job demands me to. My primary work language is objective c but soon, I'll have to learn swiftEarlier Java did adopt type safety and adhered to it very hard but last few versions have been really good especially bringing in lambda expressions, stream's map filter and reduce. No one back then would have imagined passing a function as a argument back then. Java will adopt all the best techniques required by devs as the time changes.
Anyway I better try to learn and find out myself why many people are learning this language. First time I noticed this while surfing through reddit then while seeing spring documentation. But did not feel like looking into it cause "its such a drag". But when I started seeing forum members discussing about this, I became curious. Should i invest time in learning new features of javaor go with Kotlin. Sigh ...
A query from someone who know nothing about Kotlin: How it is compared to Python?
Wasn't Python a de facto language used in Google services? Is the demand of Kotlin more than Python now?
Waste of time and energyBut why verbose is a problem.
Note that Kotlin is still not very common in the enterprise software development domain. That is why I always suggest learning Java and learn Kotlin as a side gig. But you can't go wrong with pure Kotlin if you are going into Android app development.Should i invest time in learning new features of javaor go with Kotlin. Sigh ...
Spring has been officially supporting Kotlin since Spring 5 I think. You have the choice of either creating a Java or Kotlin project at start.spring.io.First time I noticed this while surfing through reddit then while seeing spring documentation.
Most of the differences are discussed in above posts. The goal of the Kotlin team was to create a language that has flexibility like Java but simplify it by removing boilerplate code and introducing features that make it more concise. Currently, Kotlin requires Java to run, so it's kind of like coding in Scala or Clojure (which also require Java), but since Java is the language with the largest number of libraries, you can use those libraries in your Kotlin, Scala or Clojure projects.A query from someone who know nothing about Kotlin: How it is compared to Python?
Wasn't Python a de facto language used in Google services? Is the demand of Kotlin more than Python now?
PS: I want to learn Python and my target for this year is to deliver some projects in Python both personally and at my workplace.