Since Kotlin runs on the JVM and Java is the main programming language for the JVM, do you compare the way Kotlin work with Java's way?
I mean, not only the semicolon, nulls and other abstractions, but how lambdas, collections, etc. work in comparison with Java.
Interestingly, the answer is "no". At least, not all the time. When we looked at the existing books, the vast majority of them were for people converting from Java to Kotlin. If you know, you will easily be able to pick up Kotlin from HFK. But our aim was to be one of the first books that was not simply a conversion tool, but a book about Kotlin in its own right. Many of the examples we include, use the JVM. But our aim is teach the core language, and that means that we don't want to depend too much on the JVM being there.
We also believe that over time Kotlin will become the language of choice for developers writing code for the JVM and the Android eco-system. This means that there will be more and more developers for whom their first experience of the Java world will not be by the Java language. We want to be able to serve those learners, as well as those Java developers looking to convert.
Head First Android Development
posted 7 months ago
You are right, most tutorials compare Kotlin vs Java.
I think your approach in the book, also if explained the Head-First-way, would be better in many ways.
More excited of start learning Kotlin, and more motivated because Spring Framework is giving support to the language in the recent version.
Look ma! I'm selling my stuff!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop