Member-only story
Beginners guide to Kotlin
What if we make a language that takes all the good parts from other popular language — the language is Kotlin
Kotlin is gaining popularity now. Kotlin is 4th fastest growing language according to this report.
Let us explore it.
If you are coming from Javaland, Kotlin makes you write lesser code. It removes all the redundant things and makes your code elegant ✨ and concise ✅.
For example, you can write a simple hello world as below:
println("Hello World!!!")
If you are wondering that looks like scripting language, then you are most probably right. But the main difference is that Kotlin is statically typed and compiled language. When we execute the above `println` function, the function is compiled and executed.
It is a fun to write Kotlin functions:
fun hello() {
println("Hello World!!!")
}
No semicolons 🎉
No class definitions required 🎉💥
No default modifiers needed 🎉💥✨
The above function is a package-level function. When we decompile the code into Java it will be final static function inside the auto-generated class by Kotlin (based on the…