Recent Posts

Destructuring

1 minute read

Many times, you may encounter use cases where you need to return more than one item from a function. One way that people usually do is to create a custom obj...

When expression

1 minute read

A large part of computer programming is performing an action when a pattern matches.

Data class

1 minute read

One of main motivation of Kotlin is to reduce repetitive coding. One that many of us have spent a significant amount of time and effort is the class mechanis...

Extension function is a magic

less than 1 minute read

This is one of my most favorite features of Kotlin - Extension Function. Imagine this. You are using a 3rd party library - String that have all the things th...

Property Accessor

less than 1 minute read

If you are new to Kotlin, there is something in property accessor that you might find it interesting. There are two methods - get() for getter and set() for ...