Slide 1

Slide 1 text

Kotlin First: Don’t be Left Out … Oliver Mensah

Slide 2

Slide 2 text

Oliver Mensah ❖ National Service Personnel at Agro Innova ❖ Guest Author at Auth0 ❖ Co-Lead at Developer Circles Accra ❖ Software Developer ❖ Technical Writer ❖ Developer Community Enthusiast

Slide 3

Slide 3 text

A brief history of Kotlin Programming Language ○ Modern language that gives developers power for everyday tasks ○ Developed by JetBrains in 2011 and Open Sourced in 2012 ○ Statically typed language which runs in the JVM ○ At Google I/O 2017, Google announced First-class support for Kolin on Android ○ Many more...

Slide 4

Slide 4 text

Kotlin benefits ○ Concise ○ Safe ○ Interoperable ○ Tons of higher order functions on collections ○ Extension functions without inheriting from them. ○ Many more...

Slide 5

Slide 5 text

Kotlin at Google I/O 2019 “Today we’re announcing another big step: Android development will become increasingly Kotlin-first. Many new Jetpack APIs and features will be offered first in Kotlin. If you’re starting a new project, you should write it in Kotlin; code written in Kotlin often mean much less code for you–less code to type, test, and maintain. And we’re continuing to invest in tooling, docs, trainings and events to make Kotlin even easier to learn and use.

Slide 6

Slide 6 text

Android Gets Nicer with Kotlin ○ Mutators mapped to properties ○ Interface with one method mapped to lambdas

Slide 7

Slide 7 text

Lambdas ○ Callback and listeners made easier in Android

Slide 8

Slide 8 text

Background Process made Easier with Anko ○ So many options like RxJava, etc. But are complex ○ Simplified with kotlin power

Slide 9

Slide 9 text

Enhancement with Collections ○ Get functional with Collection operators ○ Harder to add errors to the code ○ Save many lines of code thus enhancing code expressivity and readability

Slide 10

Slide 10 text

No Nullity ○ Say goodbye to NullPointerException with Kotlin

Slide 11

Slide 11 text

Safe Singleton ○ Sometimes we just need a single implementation ○ Kotlin makes that easy with object data type

Slide 12

Slide 12 text

Exploring Deeper, Where to Go Next? ○ Kotlin Everywhere ○ The budding Ghana Android Developer Community

Slide 13

Slide 13 text

Questions?

Slide 14

Slide 14 text

Thank You