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
Java?.Kotlin!!
Search
sebastian tellez
May 26, 2017
Programming
0
89
Java?.Kotlin!!
Platica para el meetup de Kotlin nights en la CDMX
sebastian tellez
May 26, 2017
Tweet
Share
Other Decks in Programming
See All in Programming
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
170
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
ぼくの開発環境2026
yuzneri
0
110
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
190
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
200
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
4
320
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
6k
組織で育むオブザーバビリティ
ryota_hnk
0
170
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
690
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Art, The Web, and Tiny UX
lynnandtonic
304
21k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Ruling the World: When Life Gets Gamed
codingconduct
0
140
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
230
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
sira's awesome portfolio website redesign presentation
elsirapls
0
140
Transcript
Java?.Kotlin!! Sebastian Tellez @gorrotowi github.com/gorrotowi
Java?.Kotlin!! Kotlin es un lenguaje de programación desarrollado por JetBrains.
Es funcional, esta diseñado para correr sobre la JVM, Android y Web
Java?.Kotlin!! Funcional Lambdas 100% interoperable con Java (JVM) NullSafety
Java?.Kotlin!! Ryan (James) Gosling a.k.a Java father
Java?.Kotlin!!
Java?.Kotlin!!
Java?.Kotlin!!
Java?.Kotlin!! private String numberString; int number = Integer.parseInt(numberString); //java
Java?.Kotlin!!
Java?.Kotlin!! private String numberString; if(numberString != null){ int number =
Integer.parseInt(numberString); } private String numberString; int number = Integer.parseInt(numberString); //java
Java?.Kotlin!! var a: String = "abc" a = null //
compilation error var b: String? = "abc" b = null // ok
Java?.Kotlin!! var a: String = "abc" val sizeA = a.length
var b: String? = "abc" b = null // ok var sizeB = b.length //error: variable 'b' can be null
Java?.Kotlin!! if (b != null && b.length > 0) {
print("String of length ${b.length}") } else { print("Empty string") }
Java?.Kotlin!! var a: String = "abc" val sizeA = a.length
var b: String? = "abc" b = null // ok var sizeB = b.length //error: variable 'b' can be null
Java?.Kotlin!! var sizeB = b?.length
Java?.Kotlin!! ?:
Java?.Kotlin!! val l = if (b != null) b.length else
-1
Java?.Kotlin!! val l = b?.length ?: -1
Java?.Kotlin!! fun foo(node: Node): String? { val parent = node.getParent()
?: return null val name = node.getName() ?: throw IllegalArgumentException("name expected") // ... }
Java?.Kotlin!! private String numberString; if(numberString != null){ int number =
Integer.parseInt(numberString); } private String numberString; int number = Integer.parseInt(numberString); //java //Kotlin
Java?.Kotlin!! val aInt: Int? = numberString as? Int //Kotlin
Java?.Kotlin!! val listWithNulls: List<String?> = listOf("A", null) for (item in
listWithNulls) { item?.let { println(it) } // prints A and ignores null }
Java?.Kotlin!! val fooFighters = b!!.length
Java?.Kotlin!!
Java?.Kotlin!! https://kotlinlang.org/docs/reference/ https://fabiomsr.github.io/from-java-to-kotlin/index.html https://try.kotlinlang.org/
Java?.Kotlin!! Sebastian Tellez @gorrotowi github.com/gorrotowi GRACIAS!!