Kotlin Puzzlers, vol 2 KotlinConf 2018, Amsterdam #kotlinpuzzlers - - PowerPoint PPT Presentation

kotlin puzzlers vol 2
SMART_READER_LITE
LIVE PREVIEW

Kotlin Puzzlers, vol 2 KotlinConf 2018, Amsterdam #kotlinpuzzlers - - PowerPoint PPT Presentation

Kotlin Puzzlers, vol 2 KotlinConf 2018, Amsterdam #kotlinpuzzlers @antonkeks Tallinn, Estonia (Estland) Kotlin island How can we save Java? Why not use Kotlin :-) Kotlin? A new type-safe JVM language Very good Java interop Now also


slide-1
SLIDE 1

Kotlin Puzzlers, vol 2

KotlinConf 2018, Amsterdam

#kotlinpuzzlers @antonkeks

slide-2
SLIDE 2

Tallinn, Estonia (Estland)

slide-3
SLIDE 3

Kotlin island

slide-4
SLIDE 4

How can we save Java?

Why not use Kotlin :-)

slide-5
SLIDE 5

Kotlin?

A new type-safe JVM language Very good Java interop Now also JavaScript and Native compilers Pragmatic and concise Open-source, developed by JetBrains Very good tooling from the start Official Android language since 2017

slide-6
SLIDE 6

It took Kotlin 6 years to get to 1.0

2010-2016, plus 2 more years since then

Given the amount of time, it should be perfect

slide-7
SLIDE 7

SpaceX plans to bring us to Mars in the same amount of time 2018-2024

slide-8
SLIDE 8

Русский язык программирования

фу привет() { знач мир = “Мир” печать(мир) } fun hello() { val world = “World” print(world) }

vs

slide-9
SLIDE 9

What are programming puzzlers?

  • Short programs with curious behaviour
  • (Errors and Warnings disabled)
  • What do they print?
  • You vote for the correct answer
  • The mystery is revealed by launching the code
  • Kotlin flags and/or Vana Tallinn liqueur if you can explain
  • Lastly, don’t do this in your code!
slide-10
SLIDE 10

Kotlin Puzzlers

  • Kotlin was designed to avoid well-known Java Puzzlers
  • An ideal programming language doesn’t have any
  • Kotlin is pragmatic, not ideal
  • Tested with latest Kotlin 1.3 rc, progressive mode enabled

Ready? github.com/angryziber/kotlin-puzzlers

slide-11
SLIDE 11

Switching to Kotlin

No hype language “Swift” for Android, now official I was productive from day 1 A “better Groovy”, with static typing and great IDE support Gradual conversion from Java is possible - Ctrl+Alt+Shift+K in IDEA

  • Even Gradle is switching!
slide-12
SLIDE 12

Thanks!

See and submit more here github.com/angryziber/kotlin-puzzlers #kotlinpuzzlers