$30 off During Our Annual Pro Sale. View Details »

Explorig Kotlin Android - IO Extended '19 Hyderabad

Explorig Kotlin Android - IO Extended '19 Hyderabad

The slides for my talk at Google IO Extended 2019 held on 7th July, 2019 in Hyderabad, Pakistan.

Event: https://www.facebook.com/events/2257554364573613/

Wajahat Karim

July 07, 2019
Tweet

More Decks by Wajahat Karim

Other Decks in Programming

Transcript

  1. Exploring
    Android
    Kotlin
    Wajahat Karim
    Google IO Extended - Hyderabad

    View Slide

  2. I am Wajahat Karim
    And I work at Contour Software.
    Hello!
    2
    Coding
    8+ Years Experienced
    Android Developer
    Writing
    Authored 2 Worldwide
    Published Books
    Passion
    Open Source Contributor
    (many Android libraries)
    Community
    AndroidPub, FlutterPub,
    Articles, and Talks

    View Slide

  3. Open Source =
    3

    View Slide

  4. Kotlin
    Basics 101

    View Slide

  5. Why Kotlin?
    5
    Statically Typed
    This means that the type of every
    variable and expression is known at
    compile time.
    Concise
    Drastically reduces the boilerplate
    code that you have been writing in
    other OOP languages like Java.
    Explicit
    Means being specific about your
    design choices and not hiding
    anything from the consumers of code.
    Easy to Learn
    Kotlin has a very low learning
    curve. The basic syntax looks a lot
    like Java.
    Null-Safe
    Avoids the most dreaded
    NullPointerExceptions by supporting
    nullability as part of its type system.
    Interoperable with Java
    You can easily access Java code from
    Kotlin and vice versa.

    View Slide

  6. Variables in Kotlin
    6

    View Slide

  7. Arrays & Ranges
    7

    View Slide

  8. if-else when
    8

    View Slide

  9. Loops
    9

    View Slide

  10. Null Safety
    10

    View Slide

  11. Functions
    11

    View Slide

  12. Extension Functions
    12
    More extensions at:
    https://developer.android.com/kotlin/ktx

    View Slide

  13. Kotlin in
    Android

    View Slide

  14. Kotlin in Android
    14
    Official Support
    Google announced Kotlin as an official programming language
    for developing Android application in Google IO 2016..
    Android KTX
    Google is heavily investing in creating open source extensions
    and APIs in Kotlin to make things easier and convenient for
    Android developers.
    Kotlin First
    Starting this year after Google IO 2019, Android APIs will be
    Kotlin first and will be architectured from Kotlin perspective.

    View Slide

  15. Android DevChat
    Pakistan
    15
    Join 100+ community of Pakistani android devs at:
    http://bit.do/pak-android-slack

    View Slide

  16. You
    Thank you for attending this
    event.
    Techno Summit
    The event is organized by them.
    https://www.technosummit.org
    Special Thanks
    16
    Google
    After all, its Google powered Google
    IO Extended event.
    Undraw
    All the beautiful illustrations in this
    presentation are from Undraw.
    http://undraw.co

    View Slide

  17. Any Questions?
    You can find me at:
    ● https://wajahatkarim.com
    ● github.com/wajahatkarim3
    ● medium.com/@wajahatkarim3
    17

    View Slide