Kotlin For Android Development By: Jalpesh Vasa & Sagar Patel
Why Kotlin was Created? • Kotlin was created by JetBrains. Here are the main points: • To increase their (JetBrains) productivity – JetBrains team were writing all of their IntelliJ-based IDEs almost entirely in Java. It took a lot of time to compile with javac. – Wanted to increase productivity by switching to a more expressive language. • To drive sales of IntelliJ IDEA – Wanted the enterprise development frameworks and tools for Kotlin to be the part of IntelliJ IDEA Ultimate (commercial version) thereby increasing its sales. • Drive company's business by keeping trust – Trusted by a lot of professional developers. – Wanted to drive company's business as well as attract more people to their approach of developing tools
What is Kotlin? • Kotlin is a statically typed programming language for the JVM, Android and the browser which is now officially supported by Google For Android.
Why use Kotlin for Android Development ?/ Features of Kotlin • Concise : Drastically reduce the amount of boilerplate code you need to write. • Safe : Avoid entire classes of errors such as null pointer exceptions. • Versatile : Build server-side applications, Android apps or front-end code running in the browser. • Interoperable : Leverage existing frameworks and libraries of the JVM with 100% Java Interoperability.
Features of kotlin • Open source – Kotlin is distributed under Apache License, Version 2.0. • Interoperable with Java and Android – This means all your current Java/Android code works seamlessly with Kotlin. • Concise and Expressive – Rough estimation indicates that, using Kotlin allows you to cut off the lines of code by approximately 40% (compared to Java). – Expressive means, it's easy to write code that both humans and compilers can understand easily. • Easy to Learn – It is influenced by Java, Scala, Groovy, C#, JavaScript and Gosu. Learning Kotlin is easy if you know any of these programming languages. • Tool-friendly – You can choose any Java IDE to run Kotlin or build it from the command line. • Safe – It is aimed at removing dangers of null references from the code (a big headache in Java).
The Present and Future of Kotlin The Present • Many companies like Netflix, Uber, Trello, Pinterest, Corda etc. are using Kotlin (along with other programming languages) to create applications. • The number of lines of code on GitHub increased from 2.1 million to 10 million in an interval of year from 2016 to 2017. • At recent Google I/O held on 17 May, 2017, Android team announced Kotlin as an official language for Android app development.
The Present and Future of Kotlin The Future • The future plans include the concept of common module in Kotlin. It allows you to develop platform specific functionality for multiplatform development. Possible Future Projects in Kotlin • Cross-platform game development • Cross-platform mobile application development • Server-side and micro services • Data analysis and machine learning • Embedded system: Arduino/Raspberry Pi to professional controllers directly.
• Java To Kotlin • Introduction to Kotlin Part-1 • Introduction to Kotlin Part-2 • Introduction to Kotlin Part-3
Resources to learn Kotlin • 20 Excellent resources to learn Kotlin • Kotlin Tutorial • Kotlin Step-by-Step Tutorial for Beginners
Kotlin for android development

Kotlin for android development

  • 1.
    Kotlin For AndroidDevelopment By: Jalpesh Vasa & Sagar Patel
  • 2.
    Why Kotlin wasCreated? • Kotlin was created by JetBrains. Here are the main points: • To increase their (JetBrains) productivity – JetBrains team were writing all of their IntelliJ-based IDEs almost entirely in Java. It took a lot of time to compile with javac. – Wanted to increase productivity by switching to a more expressive language. • To drive sales of IntelliJ IDEA – Wanted the enterprise development frameworks and tools for Kotlin to be the part of IntelliJ IDEA Ultimate (commercial version) thereby increasing its sales. • Drive company's business by keeping trust – Trusted by a lot of professional developers. – Wanted to drive company's business as well as attract more people to their approach of developing tools
  • 3.
    What is Kotlin? •Kotlin is a statically typed programming language for the JVM, Android and the browser which is now officially supported by Google For Android.
  • 4.
    Why use Kotlinfor Android Development ?/ Features of Kotlin • Concise : Drastically reduce the amount of boilerplate code you need to write. • Safe : Avoid entire classes of errors such as null pointer exceptions. • Versatile : Build server-side applications, Android apps or front-end code running in the browser. • Interoperable : Leverage existing frameworks and libraries of the JVM with 100% Java Interoperability.
  • 5.
    Features of kotlin •Open source – Kotlin is distributed under Apache License, Version 2.0. • Interoperable with Java and Android – This means all your current Java/Android code works seamlessly with Kotlin. • Concise and Expressive – Rough estimation indicates that, using Kotlin allows you to cut off the lines of code by approximately 40% (compared to Java). – Expressive means, it's easy to write code that both humans and compilers can understand easily. • Easy to Learn – It is influenced by Java, Scala, Groovy, C#, JavaScript and Gosu. Learning Kotlin is easy if you know any of these programming languages. • Tool-friendly – You can choose any Java IDE to run Kotlin or build it from the command line. • Safe – It is aimed at removing dangers of null references from the code (a big headache in Java).
  • 6.
    The Present andFuture of Kotlin The Present • Many companies like Netflix, Uber, Trello, Pinterest, Corda etc. are using Kotlin (along with other programming languages) to create applications. • The number of lines of code on GitHub increased from 2.1 million to 10 million in an interval of year from 2016 to 2017. • At recent Google I/O held on 17 May, 2017, Android team announced Kotlin as an official language for Android app development.
  • 7.
    The Present andFuture of Kotlin The Future • The future plans include the concept of common module in Kotlin. It allows you to develop platform specific functionality for multiplatform development. Possible Future Projects in Kotlin • Cross-platform game development • Cross-platform mobile application development • Server-side and micro services • Data analysis and machine learning • Embedded system: Arduino/Raspberry Pi to professional controllers directly.
  • 8.
    • Java ToKotlin • Introduction to Kotlin Part-1 • Introduction to Kotlin Part-2 • Introduction to Kotlin Part-3
  • 9.
    Resources to learnKotlin • 20 Excellent resources to learn Kotlin • Kotlin Tutorial • Kotlin Step-by-Step Tutorial for Beginners