Java and JVM languages • Works on backend systems • Maintainer of kotlin-logging open-source lib • Kotlin advocate on my spare time since early in 2016
(JVM first, JS and Native) • Open Source • Developed by Jetbrains since 2010 • Version 1.0 on Feb. 2016 • Official Android (Google) support since May 2017 https://medium.com/@octskyward/why-kotlin-is-my-next-programming-language-c25c001e26e3
String getName() { return name; } public void setName(String name) { this.name = name; } } Kotlin class Service { var name: String? = null } val service = Service() println("Name is “ + service.name)
String getName() { return name; } public void setName(String name) { this.name = name; } } Kotlin class Service { var name: String? = null } val service = Service() println("Name is ${service.name}")
String getName() { return name; } public void setName(String name) { this.name = name; } } Kotlin class Service { var name: String? = null } val service = Service() println("Name is ${service.name}")
{ doSomethingUsefulOne() } val two = async(CommonPool) { doSomethingUsefulTwo() } println("The answer is ${one.await() + two.await()}”) } println("Completed in $time ms") The answer is 42 Completed in 1017 ms