Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin First: Don’t be Left Out

Kotlin First: Don’t be Left Out

Kotlin has been one of the most-loved languages two years running on Stack Overflow, and one of the fastest-growing on GitHub in number of contributors and also making a good move in the Android world.

This talk at Google I/O Extended - GDG Accra focuses on Google's mission to make Kotlin first when it comes to Android Development

Oliver Mensah

May 31, 2019
Tweet

More Decks by Oliver Mensah

Other Decks in Programming

Transcript

  1. 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
  2. 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...
  3. Kotlin benefits ◦ Concise ◦ Safe ◦ Interoperable ◦ Tons

    of higher order functions on collections ◦ Extension functions without inheriting from them. ◦ Many more...
  4. 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.
  5. Android Gets Nicer with Kotlin ◦ Mutators mapped to properties

    ◦ Interface with one method mapped to lambdas
  6. Background Process made Easier with Anko ◦ So many options

    like RxJava, etc. But are complex ◦ Simplified with kotlin power
  7. 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
  8. Safe Singleton ◦ Sometimes we just need a single implementation

    ◦ Kotlin makes that easy with object data type
  9. Exploring Deeper, Where to Go Next? ◦ Kotlin Everywhere ◦

    The budding Ghana Android Developer Community