Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What's New In Kotlin at Google IO 2019 - Summary
Search
Miguel Beltran
May 29, 2019
Programming
0
130
What's New In Kotlin at Google IO 2019 - Summary
Everything that was presented as new in Kotlin at Google IO in 5 minutes
Miguel Beltran
May 29, 2019
Tweet
Share
More Decks by Miguel Beltran
See All by Miguel Beltran
Testing Everything with Flutter
miquelbeltran
1
810
Accessibility in Flutter
miquelbeltran
3
880
Flutter for Web - Codemotion Berlin 2019
miquelbeltran
1
130
Flutter Talk at CFCamp
miquelbeltran
2
510
Flutter X Firestore
miquelbeltran
2
150
Minimalism Driven Development
miquelbeltran
1
180
Flutter, DACHFest & Berlin
miquelbeltran
2
140
DACHFest App: From Idea to Appstore and Play Store in One Day
miquelbeltran
2
76
Sketchnoting & Lettering Workshop
miquelbeltran
3
210
Other Decks in Programming
See All in Programming
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
マルチモジュールにおけるテスト最適化
fxwx23
0
210
Pythonで改めて考える「クラス(class)」の使いどころ
os1ma
2
710
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
Rubyのobject_id
qnighy
6
1.3k
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
1.1k
XStateでReactに秩序を与えたい
gizm000
0
730
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
connect-go で面倒くささと戦う / 2024-08-27 #newmo_layerx_go
izumin5210
2
650
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
280
LangChainの現在とv0.3にむけて
os1ma
4
930
How to Break into Reading Open Source
kaspth
2
220
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
How STYLIGHT went responsive
nonsquared
93
5.1k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
Visualization
eitanlees
142
15k
Web Components: a chance to create the future
zenorocha
309
42k
Embracing the Ebb and Flow
colly
83
4.4k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Writing Fast Ruby
sferik
623
60k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
Atom: Resistance is Futile
akmur
261
25k
Transcript
What’s New in Kotlin Google I/O 2019
Back To The Future: 2017 2017 Keynote → Google announces
official Kotlin support Creation of Foundation: - Lead Language Designer - Control breaking changes via Language Committee
State Of Kotlin 2019 ➔ Preferred language by Google for
Android dev ➔ Best support in Jetpack libraries ◆ KTX, Jetpack Compose, etc. ➔ Used at Google ◆ Drive, Nest, Home, system UI, etc. ➔ Koltin/Native → Now Beta! ➔ Coroutines everywhere
Capturing ‘when’ val response = getResponse() when (response) { OK
-> process(response) CANCELED -> print("canceled") }
Capturing ‘when’ when (val response = getResponse()) { OK ->
process(response) CANCELED -> print("canceled") }
Experimental Annotation @Experimental(level = WARNING) annotation class NewAPI @NewAPI class
MyService val service = MyService()
Contracts fun MyClass?.notNull(): Boolean { contract { returns(true) implies(this@notNull !=
null) } return this != null }
Serializable Annotation @Serializable data class Customer( val id: Int, val
name: String ) Json.stringify(Customer.serializer(), customer)
Flow → Asynchronous cold streams, in preview! val values: Flow<Int>
= flow { delay(1000) emit(42) } values.collect { value -> println("Received $value") }
More Language Features! ➔ Unsigned Ints ➔ Better parallel builds
with Gradle ➔ Incremental Annotation Processor with KAPT ➔ New Type Inference Engine (helps with Rx!) ➔ Progressive Mode (more experimental features)
Better Community Support ➔ Code Samples in Kotlin ➔ New
Online Training w/ Udacity
None
None