I created the following demo for PCF using spring boot / PCF. After showing a colleague he decided he would write a Kotlin version of the same application. It's interesting to see how the Kotlin classes differ to those of Java.
The Kotlin version of the same application is here.
Kotlin is a functional language developed by the JetBrains guys. Its main benefits are:
- Conciseness of code
- Code safety - Null safety by not allowing nulls values unless one specifies variables to be null.
- Interoptability - 100% Java interop.
- Ease of use and reduced learning curve
- Great tooling - As support in Intellij Idea is brilliant