Comming from a Ruby background, using Java at work can drive me crazy.

I don’t like this pompous syntax of Java. First, because I’m lazy and don’t want to type all that extra brackets and repeating nonsense. But, more important, because it’s so much harder to read.

So, I fiddled around with Kotlin today and found out that it can take away some of my pain. Using IntelliJ, it was easy to port a small existing Java-project to Kotlin. It was almost automatically and only one single line had to be modified by hand. All tests were green though the code still looks just like Java, just with different keywords. Next, I used the hints provided by IntelliJ and start “shrinking” the code.

After all, I can say, I like Kotlin much more than Java ;-)

14 changed files with 120 additions and 220 deletions.

Have a look …