6 Reasons why you should learn Android Development with Kotlin in 2018

Google announced Kotlin as an official programming language for Android development at Google I/O 2017. Since then, many aspiring Android developers have been wondering if they should start with Java or Kotlin when learning Android development. After doing some of my own research, I went all-in with Kotlin to start my journey of becoming an Android Developer (I had no prior experience with Java or Kotlin). Here’s why:

  • Kotlin is much more clean to read and write. There is a lot less boiler plate code (as a small bonus, unlike Java, Kotlin does not use semicolons 😜)
  • After completing some basic Android development tutorials in both Java and Kotlin, I felt much more efficient and was happier programming in Kotlin vs Java. You can get features up and running a lot faster in Kotlin than you can in Java.
  • I believe that in the near future, Kotlin will become what Swift is to iOS. Almost everything in iOS development is done in Swift now instead of Objective-C.
  • Even though some developers have been using Kotlin for a few years now, it has only started to become more mainstream recently when Google made their announcement in May 2017. Since Kotlin is still relatively new, now is a great time to start developing Android apps in Kotlin.

Other reasons to start learning Android development with Kotlin:

It’s interoperable with Java.

  • It works seamlessly with Java so that you can use both in development. For example, if you’re updating an app written in Java, instead of converting the whole thing to Kotlin, you can just write the new updates in Kotlin.

You can convert Java code to Kotlin with just the click of a button.

  • If you copy Java code to a Kotlin file in Android Studio, a dialogue box will automatically appear asking if you want the code to be converted to Kotlin.
  • If you want to convert a Java file to Kotlin in Android Studio, there is an option for AS to convert the file to Kotlin.
  • There is also an option on the Kotlin website to convert any Java code to Kotlin. It’s very helpful when looking at Android questions on Stack Overflow written in Java.

Thanks for reading! Too keep up to date with my journey as an Android developer, follow me on Twitter.