Before we start, let me just give some tips how to configure your IDE to work more smoothly with Kotlin.
Kotlin for IntelliJ IDEA
Kotlin was written by Jet Brains therefore it comes build-in with IntelliJ IDEA. If you go to File->Settings->Plugins and look for Kotlin you will see the plugin is already installed, you will see the version number and if you right click you will notice that you cannot uninstall the plugin. We can consider it as a fundamental part of the IDE.
You can check the plugins for updates. Go to Tools->Kotlin->Configure Kotlin Plugin Updates. Here you can choose to switch to an early access version if you feel like it or just check and install newer version of the plugin.
To create a project, go to File->New->Project. Select Kotlin and Kotlin (JVM). Choose a project name and directory and Finish, your empty Kotlin project will be generated. Now if you right click the source directory and go to New, you will the option Kotlin File/Class. If you go for the file option, you will get a *.kt file, which after you build, the compiler will make it into *kt.class file.
Kotlin for Eclipse
Unlike with IntelliJ, Eclipse doesn’t have Kotlin plugin installed for you. You will have to do it yourself. Simply go to the Marketplace, search for the Kotlin plugin, install it, go through the licenses and restart the IDE.
Once this is all done, just go to File->New->Project. You will find there Kotlin, add a project name and finish. The plugin works very well inside Eclipse.
- Object Oriented Programming
- Functional programming
- Kotlin and the Java Ecosystem
- Testing with Spek
- Rock Solid Knowledge -> Solid Kotlin