Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Kotlin for Android
Semih Bozdemir
sembozdemir@gmail.com
semih.bozdemir@monitise.com
medium.com/@sembozdemir
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)...
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 Koans
https://try.kotlinlang.org/koans
• Learn K...
Kotlin For Android (at DevFest İzmir 2016)
Kotlin For Android (at DevFest İzmir 2016)
Kotlin For Android (at DevFest İzmir 2016)
Kotlin For Android (at DevFest İzmir 2016)
Upcoming SlideShare
Loading in …5
×

Kotlin For Android (at DevFest İzmir 2016)

627 views

Published on

Kotlin for Android presentation in 29 Nov 2016 at DevFest İzmir '16

Published in: Engineering
  • Be the first to comment

Kotlin For Android (at DevFest İzmir 2016)

  1. 1. Kotlin for Android Semih Bozdemir sembozdemir@gmail.com semih.bozdemir@monitise.com medium.com/@sembozdemir
  2. 2. Kotlin • Programming language for JVM • Made by JetBrains • Open-source
  3. 3. 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
  4. 4. Basic Syntax • Functions
  5. 5. Basic Syntax • Functions
  6. 6. Basic Syntax • Local variables(read-only)
  7. 7. Basic Syntax • Local variables(read-only)
  8. 8. Basic Syntax • Local variables(read-only)
  9. 9. Basic Syntax • Local variables(mutable)
  10. 10. Basic Syntax • String templates
  11. 11. Basic Syntax • For Loops
  12. 12. Basic Syntax • For Loops
  13. 13. Basic Syntax • Ranges
  14. 14. Basic Syntax • Type checks and automatic cast
  15. 15. Basic Syntax • When Operator
  16. 16. Basic Syntax • When Operator
  17. 17. Basic Syntax • When Operator
  18. 18. Basic Syntax • When Operator
  19. 19. Basic Syntax • When Operator
  20. 20. Classes and Inheritance • Constructors
  21. 21. Classes and Inheritance • Constructors
  22. 22. Classes and Inheritance • Constructors
  23. 23. Classes and Inheritance • Constructors
  24. 24. Classes and Inheritance • Constructors
  25. 25. Classes and Inheritance • Creating instance
  26. 26. Classes and Inheritance • Creating instance
  27. 27. Classes and Inheritance • Creating instance
  28. 28. Classes and Inheritance • Inheritance
  29. 29. Classes and Inheritance • Inheritance
  30. 30. Classes and Inheritance • Inheritance
  31. 31. Classes and Inheritance • Inheritance
  32. 32. Classes and Inheritance • Inheritance
  33. 33. Classes and Inheritance • Getters and setters
  34. 34. Classes and Inheritance • Data classes
  35. 35. Classes and Inheritance • Object declarations
  36. 36. Classes and Inheritance • Companion object
  37. 37. Classes and Inheritance • Companion object
  38. 38. Null Safety
  39. 39. Null Safety
  40. 40. Null Safety
  41. 41. Null Safety
  42. 42. Null Safety
  43. 43. Null Safety
  44. 44. Extension Functions
  45. 45. Extension Functions
  46. 46. Extension Functions
  47. 47. Higher-Order Functions
  48. 48. Higher-Order Functions
  49. 49. Higher-Order Functions
  50. 50. Higher-Order Functions
  51. 51. Higher-Order Functions
  52. 52. Higher-Order Functions
  53. 53. Higher-Order Functions
  54. 54. Higher-Order Functions
  55. 55. Higher-Order Functions
  56. 56. Higher-Order Functions
  57. 57. Higher-Order Functions
  58. 58. Higher-Order Functions
  59. 59. Higher-Order Functions
  60. 60. Anko
  61. 61. “Let’s code ${kotlin}” bit.ly/todokotlin
  62. 62. Resources • Documentation https://kotlinlang.org/docs/reference/ • Kotlin Koans https://try.kotlinlang.org/koans • Learn Kotlin with Keddit https://medium.com/@juanchosaravia/learn-kotlin-while-developing-an-android-app- introduction-567e21ff9664#.2fia7o2zg • Getting started with Android with Kotlin https://kotlinlang.org/docs/tutorials/kotlin-android.html

×