Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin with Android - Create Apps easily and fun

Kotlin with Android - Create Apps easily and fun

This talk was presented in Google Campus São Paulo - https://bit.ly/2Nv9F32

In this presentation I talk about Kotlin language and show the diferences with Java.
Talk about the Kotlin book that I wrote - https://bit.ly/2QMLtHs

Kassiano

August 28, 2018
Tweet

More Decks by Kassiano

Other Decks in Programming

Transcript

  1. But, who is Kassiano ?? • Mobile Teacher at SENAI

    • Book Writer • Android Java/Kotlin Developer • http://github.com/kassiano • https://www.linkedin.com/in/kassian-resende/
  2. The Language • Created by JetBrains in some while 2011

    • Kotlin is a JVM language • Its consise, safe and interoperable • Expressive and powerfull
  3. What about interoperability • Kotlin has total interoperability with JAVA,

    which means that you can write a Java code in a Kotlin project and it will work without any problem. Thats amazing !! • Show a bit of code
  4. Why interoperability is a good ideia in Android? • Because

    of the libs !! Isso foi uma sacada genial
  5. Null Safe This JAVA code throws a Null Pointer Exception

    ... In Kotlin the same code doesnt even compile
  6. Object-oriented and functional Kotlin has both object-oriented and functional constructs.

    You can use it in both OO and FP styles, or mix elements of the two. With first-class support for features such as higher-order functions, function types and lambdas, Kotlin is a great choice if you’re doing or exploring functional programming.
  7. Filter function We can apply a filter in a list

    using a lambda function Here we are filtering the list with the Odd numbers, so it will create a new list filtered.
  8. Map function We can apply a map in a list

    using a lambda function In this case we are mapping the list squaring all elements, so it will create a new list.
  9. Reduce function We can reduce a list to a single

    value using lambda too In this case we are reducing the list to one single value, which is the sum of all elements
  10. Combine these functions We can combine these functions ! Here

    we have the sum of all odd elements squared !
  11. Its quite diferent The book is quite diferent from the

    most technical books you see. The main diferente is that is not a Book deep into Android even its not a book deep into Kotlin.
  12. This was made for you • I wrote every single

    of line thinking of you ! • Thinking in how you learn • Thinking in how the knowleadge is build into your head
  13. Looking inside 1. A linguagem Kotlin 2. Programando em Kotlin

    3. Configurando o ambiente de desenvolvimento 4. Anatomia da plataforma Android 5. Primeiro projeto – Calculadora de aposentadoria 6. Lista de compras 7. Lista de compras 2.0 8. Persistencia de dados com SQLite 9. Calculadora de Bitcoin 10.Notificações, permissões, localização e publicação
  14. Special thanks Thanks to Primi to support this event Thaks

    All companys that area here today: SENAI, FATEC, Houpa, ITAU Unibanco, Pagar.Me, Donuts4u, RDI – Capgemini, Caelum / Alura, Loggi, Tivit Etc..