• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Head First Kotlin: Does the book compare Kotlin with Java?

 
Ranch Hand
Posts: 64
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dawn & David Griffiths,

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.

Best wishes with your book.
 
Author
Posts: 105
5
Android Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jorge,

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.

D+D
 
Jorge Ruiz-Aquino
Ranch Hand
Posts: 64
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!