Sheikh Asif Ali
Sheikh Asif Ali </>

✨How Kotlin Broke Me✨ (In a Good Way)

Originally published on linkedin.com
✨How Kotlin Broke Me✨ (In a Good Way)

When I initially started Android Development, I didn't know much about it but just wanted to start creating apps. I already knew how to write Java applications so I chose Java as the language of my choice, and thought why use Kotlin when Java can do the same thing.

Boy was I wrong! As time went by I realized that Java isn’t used that much anymore, and developers have already switched to Kotlin. Google officially recommends Kotlin as well.

So I decided to learn Kotlin. And how did I do it? 🤔

I had already written a Java Android App, so I set my goal to rewrite the entire app in Kotlin.🎯

I first got used to the syntax by reading the documentation and using Kotlin’s official Koans platform (Highly recommended if you’re a beginner). The docs were great. Kotlin just felt like Java but without so much boilerplate and verbosity. It just made things so much simpler.

I kept the app written in Java on one side of the screen and tried writing the same code but in Kotlin. Initially it was a bit challenging but as I progressed and completed the app I felt confident in my skills. While the performance gains in my small app weren't massive, Kotlin's potential for improvement likely shines in larger projects. 👩‍💻

There have been so many moments when I was awestruck by the features of Kotlin. Like so many things just made sense. Now Kotlin is so fun, I don't think I can go back to Java after this. It has broken me...

I still have a lot to understand and learn about Kotlin, but it's been amazing so far and I learned a lot of things about Kotlin as well as android. So i will be sharing some of the things i learnt here and on other platforms. So stay tuned and look out for some cool stuff.