December 2017
Intermediate to advanced
260 pages
7h 34m
English
While being interoperable, Kotlin code is far superior to Java code. Like Scala, Kotlin uses type inference to cut down on a lot of boilerplate code and makes it concise. (Type inference is a better feature than dynamic typing as it reduces the code without sacrificing the robustness of the end product). However, unlike Scala, Kotlin code is easy to read and understand, even for someone who may not know Kotlin.
Kotlin's data class construct is the most prominent example of being concise as shown in the following:
data class Employee (val id: Long, var name: String)
Compared to its Java counterpart, the preceding line has packed into it the class definition, member variables, constructor, getter-setter methods, ...
Read now
Unlock full access