mark cerqueira well-rounded nerd

Kotlin at Twitch

A little over a year ago, Kotlin was announced as an official language for Android at Google I/O 2017. Adoption of new technologies in existing ecosystems can be challenging: sometimes intertia-filled engineers resist the changing times, sometimes leadership believe so strongly in a “if it ain’t broke don’t fix it” mentality, and sometimes the build processes just make adopting new stuff incredibly impractical.

The Twitch Android team bucked those challenges and started shipping Kotlin as soon as Kotlin became a first-class citizen on Android. A few weeks ago our codebase sailed smoothly into becoming a majority Kotlin codebase!

Kreygasm

In under a year we’ve leveraged Kotlin to refactor and reduce technical debt, reduce the number of null-checks, write a Kotlin DSL-based UI testing framework, marvel in awe of how few Kotlin lines one needs to do things that take many in Java, and increase the quality of our app for us – the developers – and our customers.

It’s also worth noting that, a year ago, everyone on the team considered themselves Kotlin newbies. Our success with Kotlin was not an accident. Our successful adoption was a result of a combination of Jetbrains being amazing at building IDEs and programming languages, helpful developer tools (all hail Code -> Convert Java File to Kotlin File and Kotlinify code), an already thriving developer community that quickly dove into Kotlin, and – most (cheesily) importantly – patience and trust amongst the team to take on something new, unknown, and exciting.

Excited by the power of memes and helping us close in on the mythical Android codebase with no Java? Twitch is hiring! Is dealing with subpar IDEs like Xcode more of your flavor? We’re also hiring for our iOS team that is well on its way to being a majority Swift codebase! My Twitter DMs are open; slide on into them!