JVM-based language developed by JetBrains • From industry not academia • 100% inter-operable with the Java language Open Source - https://github.com/JetBrains/kotlin
code you need to write. Safe - Avoid entire classes of errors such as null pointer exceptions. Versatile - Build server-side applications, Android apps or front-end code running in the browser.
rising. Refactoring started mid 2015. Hotels, Packages, Flights, Services and MockWebServer & tests classes are 90% in Kotlin Cars/LX/Legacy tablet code still in java. Other teams in Expedia are experimenting with Kotlin in the web.
invention of the null reference …. has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years. -Sir Charles Antony Richard Hoare
= ViewBinding(this, id) private class ViewBinding<T : View>(val source: Any, val id: Int) : ReadOnlyProperty<Any, T> { private val lazy = Lazy<T>() override fun getValue(thisRef: Any, property: KProperty<*>): T = lazy.get { findView<T>(source, id) ?: throw IllegalStateException("View ID $id for '${property.name}' not found.") } } val mapView: MapView by bindView(R.id.map_view)