22 Kotlin Extensions for Cleaner Code

Be more productive when building your mobile apps

Alisa "Foxicorn" Nekrasova
Better Programming
Published in
8 min readSep 3, 2020

--

Photo by Jonathan Kemper on Unsplash

I’m a mobile developer, and one of the reasons I switched to Kotlin immediately after it appeared is because of its support of extensions. Extensions allow you to add methods to any existing class, even to Any or an optional type (for example, Int?).

--

--

Game and software developer with more than 17 years of experience. Freelancer, writer, author of the book “Swift Recipes for iOS Developers”.