Why Kotlin? An Introduction. (Part 6)

Extensions

Why Kotlin? An Introduction. (Part 6)

This post is going to be a short but sweet one as I introduce the power of Kotlin extensions! Kotlin extensions allow you to simply extend the functionality of a given object. Say for some reason you're developing an Android app and find yourself passing around an instance of context a lot to get a simple desired result. As everyone (should) know, passing around an instance of context is dangerous. It can lead to memory leaks and makes your application more coupled, complicating testing. [Read More]