New Language, New Me 85 of 100 Days of…
Kotlin is definitely…different from Java. But it’s still Week 1. I have a long way to go.
You can find a video of this at the bottom of the page.
I started my learning plan for Kotlin. I looked over the Kotlin documentation on the Google website to get an idea of how it works.
Kotlin is a programming language available for Android Development. Because it uses less code, Kotlin is more readable than Java and easier to learn. Additionally, Kotlin can be used alongside Java for building Android Applications. It has other uses in back end development and web applications, but I’m focusing on its utility for Android.
While reviewing sample code, a few things stood out to me about Kotlin syntax. The first thing I noticed was an absence of semicolons (click below).
Java uses semicolons to end statements, but it appears Kotlin interprets it line by line. That’s something I’ll have to get used to. Considering Kotlin uses less code than Java, it should be a smooth transition.
Google also recommends writing tests to learn Kotlin faster. Unfortunately, I don’t have experience with Unit tests as of yet. This might become a project in the future for solidifying my knowledge in Kotlin.
I found a resource for converting Java code to Kotlin on the Google website. While it seems useful, I’ll probably save this for smaller projects just to get a feel for the language. I wouldn’t start by converting each and every project otherwise I won’t be able to read my own code!
I’ll keep researching until I have a good starting place and go from there.
Join the mailing list to see updates like this every week!
Coding Fanatic
Sources:
Android Developers Website
Kotlin Website
Kotlin Image
Image by congerdesign from Pixabay