Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

@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

Slide 3

Slide 3 text

Mas/Kak, ngoding android pakai bahasa apa?

Slide 4

Slide 4 text

Jadi kenapa harus pake Kotlin? Kan lebih baru..

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

1. Explicit Mutable and Immutable

Slide 7

Slide 7 text

2. Data Classes + .copy() + destructuring

Slide 8

Slide 8 text

3. Null safety with operator ?. -1 baris

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

5. Less Interface more Lambda

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

7,5. More fun with kotlin extension

Slide 14

Slide 14 text

8. Easier write read of complex object

Slide 15

Slide 15 text

8,5. Delegate write read of complex object

Slide 16

Slide 16 text

9. Concurrency with Coroutine

Slide 17

Slide 17 text

10. Gradle with Kotlin script*

Slide 18

Slide 18 text

11. Write once with Kotlin Multiplatform*

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

Terimakasih @muh.alifgiant [email protected]