Kotlin• Programming language for JVM• Made by JetBrains• Open-source
Why Kotlin?• Compiles to JVM bytecode• Comes from industry• Costs nothing to adopt (One-click Java to Kotlin converter)• Easy to learn• Big community• Readable syntax
Basic Syntax• Functions
Basic Syntax• Functions
Basic Syntax• Local variables(read-only)
Basic Syntax• Local variables(read-only)
Basic Syntax• Local variables(read-only)
Basic Syntax• Local variables(mutable)
Basic Syntax• String templates
Basic Syntax• For Loops
Basic Syntax• For Loops
Basic Syntax• Ranges
Basic Syntax• Type checks and automatic cast
Basic Syntax• When Operator
Basic Syntax• When Operator
Basic Syntax• When Operator
Basic Syntax• When Operator
Basic Syntax• When Operator
Classes and Inheritance• Constructors
Classes and Inheritance• Constructors
Classes and Inheritance• Constructors
Classes and Inheritance• Constructors
Classes and Inheritance• Constructors
Classes and Inheritance• Creating instance
Classes and Inheritance• Creating instance
Classes and Inheritance• Creating instance
Classes and Inheritance• Inheritance
Classes and Inheritance• Inheritance
Classes and Inheritance• Inheritance
Classes and Inheritance• Inheritance
Classes and Inheritance• Inheritance
Classes and Inheritance• Getters and setters
Classes and Inheritance• Data classes
Classes and Inheritance• Object declarations
Classes and Inheritance• Companion object
Classes and Inheritance• Companion object
Null Safety
Null Safety
Null Safety
Null Safety
Null Safety
Null Safety
Extension Functions
Extension Functions
Extension Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Higher-Order Functions
Anko
“Let’s code ${kotlin}”bit.ly/todokotlin
Resources• Documentation
https://kotlinlang.org/docs/reference/
• Kotlin Koanshttps://try.kotlinlang.org/koans
• Learn Kotlin with Keddithttps://medium.com/@juanchosaravia/learn-kotlin-while-developing-an-android-app-introduction-567e21ff9664#.2fia7o2zg
• Getting started with Android with Kotlinhttps://kotlinlang.org/docs/tutorials/kotlin-android.html