I consider Kotlin to be a very superior language, and it is also my favourite. Kotlin was created to implement various language features, inspired by other languages like Python and Java (obviously) and reduce the amount of boilerplate code to improve developer productivity. Kotlin titles itself as:
A modern programming language that makes developers happier.
Kotlin is an evolving programming language built by Jetbrains. They started the development in 2013, and its first stable release was in 2016. Later, Google switched from Java to Kotlin as its preferred programming language for Android Applications in 2019.
If you are an experienced programmer, you will find that Kotlin uses many language features you might have seen in other languages. This includes:
It is never a good idea to directly compare two programming languages. But it is not a harm to discuss the improvements Kotlin bring and the drawbacks it has.
data class
has been a major improvement in transforming a 50-line POJO (Plain Old Java Object) class to a handful of 5 lines.A fun fact and a joke: Kotlin is a language that is written in itself! The creators of Kotlin hated Java so much that once they got to the stable release, they migrated their code to Kotlin. 😀
In 2019, Google announced that they are shifting their preferred language to Kotlin. There have been multiple improvements after this shift which not necessarily could have happened had Java remained their official language.
Handler
, andAsyncTask
. Kotlin developers ditched the idea of multithreading and use Coroutines to conduct the same tasks.Coroutines are lightweight processes that run in suspension inside like or unlike threads.Kotlin is an ever-growing language where there are improvements with every update. It is a powerful language that increases developer productivity. It is amazing to see the gaining recognition and popularity of this gem of a language today.
This article is the first entry to my “Kotlin Programming Course” on Medium. It is separate from my other reading list “Everything Kotlin” which is more towards the advanced programming features of Kotlin.
Everything connected with Tech & Code. Follow to join our 1M+ monthly readers
UG Student | CS Tutor | Android & Web Developer | OCJP 8 |https://cybercoder-naj.github.io