Développement Android avec le langage Kotlin
macha@CHILLCODING.com
Macha
DA COSTA Site Web
Email
" Introduction à Kotlin
 I/O $ 17-19 Mai 2017
6
% Officialisation du langage Kotlin
" Introduction à Kotlin
 Pourquoi Kotlin ?
7
" ♥+ =
" Introduction à Kotlin
 Pourquoi Kotlin ?
8
 JVM  JVM
( .java
 JVM  JVM
) Le concept de Java
" Introduction à Kotlin
 Pourquoi Kotlin ?
9
) L’histoire de Java
* +
$ 1995 $ 2009
,
"
$ 2015
" Introduction à Kotlin
 Kotlin ≈ Swift
10
 iOS : Objective-C vers Swift
$ WWDC 2014
" Introduction à Kotlin
. Kotlin de JetBrains
11
" Introduction à Kotlin
. Historique
12
$ 2010 $ 02/2016 $ 11/2017
/
Kotlin
1.0
/
Kotlin
1.2
/
Lancem
ent
Projet
/
" Introduction à Kotlin
. Concept de Kotlin
13
/ Compilé en bytecode Java
*.kt *.java
*.class
*.dex
" Introduction à Kotlin
♥ Android et Kotlin
14
/ Cohabitation Java & Kotlin
Code Java
Code Kotlin
" Introduction à Kotlin
♥ Android et Kotlin
15
/ Conversion automatique
.java : Ctrl C 1 .kt : Ctrl V
‘Code’ > ‘Convert Java File to Kotlin File’
(Command + Option + Shift + K)
" Introduction à Kotlin
. Kotlin en bref
16
/ Langage clair et concis
; 1 2
getter/setter
Log.i(TAG, "my width is $mWidth”)
Boilerplate 1 Lambdas
/ Affranchissement du NullPointerException
/ Programmation orientée objet et fonctionnelle
" Développement avec Kotlin
A. Classe
B. Variables, Opérateurs, Conditions
C. Programmation fonctionnelle
D. Bibliothèque Anko
17
/ Déclaration
/ Propriété
/ Objet compagnon
/ Fonction
/ Qualificatifs
/ Héritage
A. Classe
/ Déclaration
/ Nullité sécurisée
/ Différents types
/ Opérateurs
/ Conditions
/ Boucle
B. Variables, Opérateurs, Conditions
/ Fonction d’extension
/ Lambdas
/ Inline
/ Initialisation tardive
/ Initialisation avec une classe déléguée
C. Programmation fonctionnelle
D. Bibliothèque Anko
/ Made in Jetbrains
/ Console
/ Message Utilisateur
Conclusion
. POO
. Fonctionnelle
" Anko
" Fonctions d’extensions pour Android
" Extensions sur éléments graphique XML
" Revisite de développements classiques Android
Merci !
! macha@chillcoding.com
7 @MachaDaCosta
8 ChillCoding
9 @ILoveKotlin
Des questions ?
Kotlin pour Android
en test sur
Sources
# Kotlin pour Android
• TRY Kotlin
• Kotlin Slides and Questions
• https://antonioleiva.com/free-kotlin-android-course/
• https://www.chillcoding.com/blog/2017/10/03/ajouter-extensions-kotlin/
• https://www.chillcoding.com/blog/2017/09/28/configurer-kotlin-projet-android/
# Bibliothèque Anko
• https://github.com/kotlin/anko
• https://www.kotlindevelopment.com/why-should-use-anko/
• https://antonioleiva.com/dialogs-android-anko-kotlin/
• AK 4 : Utiliser-anko-kotlin-android
# Fonction d’extension
• Les fonctions d'extension de Kotlin
• http://tutos-android-france.com/introduction-a-kotlin/
• Vidéo de Jake Wharton sur Kotlin (DEC 2015)
• Vidéo de Huyen Tue Dao & Christina Lee sur The Road to Kotlintown (KotlinConf 2017)
Sources
# Pourquoi Kotlin ?
• Apple : la fin d’Objective-C au profit de SWIFT ?
• Swift is like Kotlin
• Langage Java
• API Java : Google a enfreint les brevets d’Oracle, selon la Cour Suprême
• Antonioleiva: 12 reasons to strat Kotlin for Android
• ChillCoding : Introduction à Kotlin
# Kotlin en bref
• Kotlin: pourquoi ce nouveau langage est une bonne nouvelle
• Introduction to Kotlin Google I/O '17
• Kotlin it's the little things
• Android Development with Kotlin
# Android et Kotlin
• Android Studio 3.0 Canary
• Kotlin - Official Site
• developer.android: Get Started with Kotlin on Android
Sources
# Type Kotlin
• https://code.tutsplus.com/tutorials/kotlin-from-scratch-variables-basic-types-arrays-type-inference-
and-comments--cms-29328
• https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html
• http://kotlinlang.org/docs/reference/basic-types.html#arrays
•
IF YOU THINK
YOU ARE TOO
SMALL
TO MAKE A
DIFFERENCE
TRY SLEEPING
WITH A MOSQUITO.
_ African Proverb

Développement Android avec le langage Kotlin

  • 1.
    Développement Android avecle langage Kotlin macha@CHILLCODING.com Macha DA COSTA Site Web Email
  • 2.
    " Introduction àKotlin  I/O $ 17-19 Mai 2017 6 % Officialisation du langage Kotlin
  • 3.
    " Introduction àKotlin  Pourquoi Kotlin ? 7 " ♥+ =
  • 4.
    " Introduction àKotlin  Pourquoi Kotlin ? 8  JVM  JVM ( .java  JVM  JVM ) Le concept de Java
  • 5.
    " Introduction àKotlin  Pourquoi Kotlin ? 9 ) L’histoire de Java * + $ 1995 $ 2009 , " $ 2015
  • 6.
    " Introduction àKotlin  Kotlin ≈ Swift 10  iOS : Objective-C vers Swift $ WWDC 2014
  • 7.
    " Introduction àKotlin . Kotlin de JetBrains 11
  • 8.
    " Introduction àKotlin . Historique 12 $ 2010 $ 02/2016 $ 11/2017 / Kotlin 1.0 / Kotlin 1.2 / Lancem ent Projet /
  • 9.
    " Introduction àKotlin . Concept de Kotlin 13 / Compilé en bytecode Java *.kt *.java *.class *.dex
  • 10.
    " Introduction àKotlin ♥ Android et Kotlin 14 / Cohabitation Java & Kotlin Code Java Code Kotlin
  • 11.
    " Introduction àKotlin ♥ Android et Kotlin 15 / Conversion automatique .java : Ctrl C 1 .kt : Ctrl V ‘Code’ > ‘Convert Java File to Kotlin File’ (Command + Option + Shift + K)
  • 12.
    " Introduction àKotlin . Kotlin en bref 16 / Langage clair et concis ; 1 2 getter/setter Log.i(TAG, "my width is $mWidth”) Boilerplate 1 Lambdas / Affranchissement du NullPointerException / Programmation orientée objet et fonctionnelle
  • 13.
    " Développement avecKotlin A. Classe B. Variables, Opérateurs, Conditions C. Programmation fonctionnelle D. Bibliothèque Anko 17
  • 14.
    / Déclaration / Propriété /Objet compagnon / Fonction / Qualificatifs / Héritage A. Classe
  • 15.
    / Déclaration / Nullitésécurisée / Différents types / Opérateurs / Conditions / Boucle B. Variables, Opérateurs, Conditions
  • 16.
    / Fonction d’extension /Lambdas / Inline / Initialisation tardive / Initialisation avec une classe déléguée C. Programmation fonctionnelle
  • 17.
    D. Bibliothèque Anko /Made in Jetbrains / Console / Message Utilisateur
  • 18.
    Conclusion . POO . Fonctionnelle "Anko " Fonctions d’extensions pour Android " Extensions sur éléments graphique XML " Revisite de développements classiques Android
  • 19.
    Merci ! ! macha@chillcoding.com 7@MachaDaCosta 8 ChillCoding 9 @ILoveKotlin Des questions ? Kotlin pour Android en test sur
  • 20.
    Sources # Kotlin pourAndroid • TRY Kotlin • Kotlin Slides and Questions • https://antonioleiva.com/free-kotlin-android-course/ • https://www.chillcoding.com/blog/2017/10/03/ajouter-extensions-kotlin/ • https://www.chillcoding.com/blog/2017/09/28/configurer-kotlin-projet-android/ # Bibliothèque Anko • https://github.com/kotlin/anko • https://www.kotlindevelopment.com/why-should-use-anko/ • https://antonioleiva.com/dialogs-android-anko-kotlin/ • AK 4 : Utiliser-anko-kotlin-android # Fonction d’extension • Les fonctions d'extension de Kotlin • http://tutos-android-france.com/introduction-a-kotlin/ • Vidéo de Jake Wharton sur Kotlin (DEC 2015) • Vidéo de Huyen Tue Dao & Christina Lee sur The Road to Kotlintown (KotlinConf 2017)
  • 21.
    Sources # Pourquoi Kotlin? • Apple : la fin d’Objective-C au profit de SWIFT ? • Swift is like Kotlin • Langage Java • API Java : Google a enfreint les brevets d’Oracle, selon la Cour Suprême • Antonioleiva: 12 reasons to strat Kotlin for Android • ChillCoding : Introduction à Kotlin # Kotlin en bref • Kotlin: pourquoi ce nouveau langage est une bonne nouvelle • Introduction to Kotlin Google I/O '17 • Kotlin it's the little things • Android Development with Kotlin # Android et Kotlin • Android Studio 3.0 Canary • Kotlin - Official Site • developer.android: Get Started with Kotlin on Android
  • 22.
    Sources # Type Kotlin •https://code.tutsplus.com/tutorials/kotlin-from-scratch-variables-basic-types-arrays-type-inference- and-comments--cms-29328 • https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html • http://kotlinlang.org/docs/reference/basic-types.html#arrays •
  • 23.
    IF YOU THINK YOUARE TOO SMALL TO MAKE A DIFFERENCE TRY SLEEPING WITH A MOSQUITO. _ African Proverb