Kotlin, Beyond the Basics

Kotlin brings loads and loads of benefits to any codebase. But when you’re first getting started it’s easy to fall into some common pitfalls.

In this talk, we will look at how you should not do things with Kotlin. For example, we will talk about misusing scoping functions like “let”, “run”, “apply”, etc. and learn the right time to use which one while not overusing them. We will also talk about interoperability between Kotlin and Java. We will look at how not to do things when building APIs that may be consumed in Java – things like top-level constant declaration vs constants within companion objects, making use Jvm* annotations in Kotlin vs not using them.

We will also talk about platform types and the potential harm they pose when calling Java code from Kotlin. We will also address another commonly overlooked topic – the fact that Kotlin encourages a new paradigm of programming where you’re not thinking in terms of steps (imperative) but rather, in terms of functions applied to parameters (functional programming) and we still find ourselves doing things the wrong way.

Programming in Kotlin can be a lot of fun, especially if you learn the tips covered in this talk early on!

Location: Main Stage Date: July 20, 2018 Time: 3:00 pm - 3:45 pm Oluwasegun Famisa