Finally it’s here, yay! Sorry that you had to wait for such a long time, shame on me but let’s continue our path.

Some of the goodies

Let’s start with some good stuff Kotlin has out-of-the-box:

  • No need for setters and getter — just use properties which are like public fields.
  • Extension functions among other possibilities allows us to create new method in existing class without need for extending that class nor creating additional util class.

fun Date.isMonday() = day == 1

val monday = date.isMonday()

In example above we added method isMonday to Date class. The…

Adam Chodera

Freelance Android Developer. My passion combined with knowledge creates great user experience.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store