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

Android Development With Kotlin

Android Development With Kotlin

Avatar for Tunde Ojediran

Tunde Ojediran

June 16, 2018

Other Decks in Technology

Transcript

  1. Why Kotlin? 100% interoperable with Java Once, both Java and

    Kotlin codes are compiled, it is difficult to tell which parts of the project is written in Kotlin or Java Also, you will be able to make use of majority of Java libraries and frameworks in your Kotlin projects
  2. Why Kotlin? Modern. Expressive. Safe. Kotlin is concise while being

    expressive. It contains safety features for nullability and immutability, to make your Android apps healthy and performant by default
  3. Why Kotlin? More Concise Code Comparing a Java class and

    Kotlin Class that produce the same results, you will observe that the one written in Kotlin is more compact and concise than the Java equivalent. So Kotlin is good at reducing the amount of boilerplate code you need to write
  4. Why Kotlin? Easy Learning Curve Kotlin is designed to have

    an easy learning curve so if you have written As a java developer, you will find out that most of the Kotlin syntax feels familiar
  5. Why Kotlin? First Class Android Studio Support Kotlin in developed

    by Jetbrains, the company also behind Android Studio. So it is quite easy configuring Kotlin in your project.
  6. The Not-So-Good Extra Runtime Size (~800kb) The Kotlin Standard Library

    and runtime will increase the size of your apk at about 800kb
  7. The Not-So-Good Initial Readability of Code Although Kotlin’s concise syntax

    is one of the language’s greatest strengths. It may be a bit difficult to decipher since a lot is going on under the curtain for a small amount of code
  8. Extension Functions Extension functions are functions that, as the name

    implies, help us to extend the functionality of classes without having to touch their code.