Best Way To Learn Kotlin For Experienced Programmers
Practical, reliable, and official online examples from kotlinlang.org
If you’re an experienced programmer like me and new to Kotlin, the best and quickest way for you to learn Kotlin is to go through this official “Learn Kotlin By Example”
While learning Kotlin by example, it is best to install IntelliJ IDEA, an Integrated Development Environment (IDE) for Kotlin.
Steps To Install IntelliJ IDEA
Uninstall your old JDK. You can follow the steps here.
Download and install the latest JDK. Select “JDK Download” here.
Download and Install IntelliJ IDEA here (the community version is good enough).
The easiest way for you to try any Kotlin code is to create a “Console Application” project. I’m sure you’re able to figure that out as an experienced programmer. :)
There is another way is to use Kotlin REPL (Read-Eval-Print-Loop), a tool for running Kotlin code interactively. It can be run from the following menu:
Tools -> Kotlin -> Kotlin REPL
You can also try this online interactive environment here. Personally, I prefer to create IntelliJ IDEA projects to save my code samples for reference later.
New Concepts That You Need To Know
I’m coming from C/C++ and C# programming background. These are some common new concepts that you may need to know:
For more detailed Kotlin vs C# comparisons, you can refer to the following article:
Kotlin is fun, I like it. The authors of “Learn Kotlin By Example” have really done a good job. I’m glad I found it. It makes me a lot easier to read and understand this official Kotlin documentation.