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

Less Code and More Productive as Android Engineer with Kotlin

Less Code and More Productive as Android Engineer with Kotlin

Talks about why you should use Kotlin as your main programming language for Android development. With some real case examples.

Muhammad Alif Akbar

April 16, 2021
Tweet

More Decks by Muhammad Alif Akbar

Other Decks in Programming

Transcript

  1. Less Code and More
    Productive as Android
    Engineer with Kotlin
    Muhammad Alif Akbar
    @muh.alifgiant

    View Slide

  2. @muh.alifgiant
    - Mobile App Engineer @ Bukalapak
    - +5 years as Android Dev
    - ❤ Kotlin, Dart, Java, Python, Js
    - Lead Assistant of Mobile Innovation Lab @ Telkom Univ (2017)
    - Merit Awardee of APICTA (Asia Pacific ICT Award) 2016

    View Slide

  3. Mas/Kak, ngoding android pakai bahasa apa?

    View Slide

  4. Jadi kenapa harus pake Kotlin?
    Kan lebih baru..

    View Slide

  5. Yuk samakan
    definisi!
    Less Code
    Kita menulis lebih sedikit
    code
    More Productive
    Menyelesaikan lebih banyak
    tugas dalam satu waktu
    https://icons8.com/illustrations/people

    View Slide

  6. 1. Explicit Mutable and Immutable

    View Slide

  7. 2. Data Classes
    + .copy()
    + destructuring

    View Slide

  8. 3. Null safety with operator ?.
    -1 baris

    View Slide

  9. 4. Smart Cast with operator is dan as?
    More readable

    View Slide

  10. 5. Less Interface more Lambda

    View Slide

  11. 6. Easier Parcelable
    https://stackoverflow.com/questions/5784231/how-to-pass-custom-object-in-bun
    https://stackoverflow.com/questions/17725821/how-to-extend-android-class-which-implements-parcelable-interface

    View Slide

  12. 7. No more findViewById(..)
    Or, Use view binding from jetpack

    View Slide

  13. 7,5. More fun with kotlin extension

    View Slide

  14. 8. Easier write read of complex object

    View Slide

  15. 8,5. Delegate write read of complex object

    View Slide

  16. 9. Concurrency with Coroutine

    View Slide

  17. 10. Gradle with Kotlin script*

    View Slide

  18. 11. Write once with Kotlin Multiplatform*

    View Slide

  19. Jadi kenapa harus pake Kotlin?
    Karena.. Kotlin is so powerful

    View Slide

  20. Terimakasih
    @muh.alifgiant
    [email protected]

    View Slide