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
Kotlin 101
Search
Ivan Bruel
October 21, 2015
Programming
2
1.2k
Kotlin 101
A brief overview on how Kotlin works and how it pairs alongside Java in an Android world.
Ivan Bruel
October 21, 2015
Tweet
Share
More Decks by Ivan Bruel
See All by Ivan Bruel
iOS Architectures - Art or Science?
ivanbruel
1
120
Android 101
ivanbruel
2
190
Other Decks in Programming
See All in Programming
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
870
オブジェクト指向コードレビューの新しいアプローチ
akkie76
3
1.6k
Migrating to Signals: A Practical Workshop
manfredsteyer
PRO
0
290
Open Source Swift Workshop - Foundation and first party libraries
ikesyo
0
270
両面どころかインフラもTSでできるよ ~ 全方位TypeScriptによるプロダクト開発 ~
myfinder
9
2.6k
The Future of C++ Interoperability: Insights from Porting a Game to Swift
teamhimeh
0
290
Enhancing Applications with Accessibility API
kishikawakatsumi
3
1.1k
Laravel OpenAPIによる"辛くない"スキーマ駆動開発
kentaroutakeda
2
2.1k
Dockerで始めるAWS Lambda開発
stutkhd0709
14
2.5k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
530
Understanding Ast By Looking
inouehi
0
120
object-oriented-conference-2024
fuwasegu
6
2k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Code Reviewing Like a Champion
maltzj
512
39k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
153
14k
Designing on Purpose - Digital PM Summit 2013
jponch
109
6.4k
The Power of CSS Pseudo Elements
geoffreycrofte
58
4.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
16k
Visualization
eitanlees
135
14k
Designing with Data
zakiwarfel
94
4.8k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Principles of Awesome APIs and How to Build Them.
keavy
119
16k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Transcript
Kotlin 101 @ BLOCO.IO
Ivan Bruel Mobile Developer @ Faber Ventures twitter.com/ivanbruel github.com/ivanbruel
Faber-Dev Bruno Oliveira Mobile Developer Afonso Tsukamoto Backend Developer João
Horta Frontend Developer Marcelo Lebre Lead Developer Ivan Bruel Mobile Developer
Android and Java A brief history lesson
Java 6 2006 Android 1.0 2008 Java 7 2011 Java
7 support 2013 Java 8 2014 Java 8 support ??? Android and Java Timeline
Lollipop 20% KitKat 43% Jelly Bean 29% Ice Cream Sandwich
4% Gingerbread 4% Platform versions Android and Java
Java 7 63% Java 6 37% Android and Java Java
versions
What’s wrong with Java? Aside from installing the Ask toolbar
What’s wrong with Java? Null references
What’s wrong with Java? Raw types
What’s wrong with Java? Covariant Arrays
What’s wrong with Java? Checked Exceptions
Kotlin Statically typed programming language for the JVM, Android and
the browser
Kotlin Why does it matter? 100% interoperable with Java Java
6 compatible
Kotlin What does it remove from Java? Checked Exceptions Non-class
primitive types Non-private fields Static members Wildcard types
Kotlin What’s new? Lambdas Properties Data classes Primary constructors Function
literals & inline functions Class delegation Extension functions Type inference Null-safety Singletons Smart casts Declaration-site variance String templates Range expressions
Kotlin How does it work? Kotlin source Java source kotlinc
javac bytecode Android ART Dalvik
Kotlin Hello, World! { }
Kotlin Hello, World!
Kotlin Type inference
Kotlin Null-safety NullPointerException Optional Safe!
Kotlin Smart casts Smart cast Smart cast
Kotlin String templates
Kotlin Range expressions
Kotlin Higher order functions and lambdas
Kotlin In-line functions
Kotlin Extension functions
Kotlin Properties and Constructors
Kotlin Properties and Constructors
Kotlin Singletons
Kotlin Companion objects
Kotlin But wait, there’s more! kotlinlang.org “Why Kotlin is my
next programming language” @ medium reddit.com/r/kotlin stackoverflow.com
Get to know us faber-ventures.com
[email protected]