Kotlin deserves to write a little about his history. I will draw from various sources, whether CZ or EN.
History of Kotlin
History of Kotlin dates back to July 2011 when JetBrains (which develops many popular IDEs for developers) introduced a new programming language for JVM (Java Virtual Machine). JetBrains team leader Dimitry Jemerov said that most languages, besides Scaly, do not offer the options that his team required. Scala’s problem was, according to Jemer, too long a compilation time. One of Kotlin’s main goals is, therefore, the compilation at least as fast as pure Java. In February 2012 JetBrains Kotlin released as an open source under the Apache 2 license. Kotlin developed and evolved only in February 2016 introduced Kotlin version 1.0. This version is considered the first stable release and since this release, JetBrains will try to keep backward compatibility.
Although Kotlin has a different syntax than Java, the compiled code is fully Java-compliant, so it’s possible to use Java libraries during the development process.
Properties of Kotlin
Kotlin is a statically-written programming language running over JVM. It is close to the Swift languages (sometimes referred to as “Swift for Android”), Scala, C #
Inspiration in syntax is for Pascal, Groovy, Scala, and so on. As a result, the basic feature present in the design of Kotlin is, first of all, the simplicity of development, as well as the resilience of the code thus created against errors. The boiler directly tries to prevent errors in the syntax level, which can have fatal consequences on the security of the resulting null safe language. Similar to Java, Kotlin is presented as a fully object-oriented language, but also uses procedural programming elements.
What can be done in Kotlin
You can write anything that can be written in Java in Kotlin.
Want to write an Android app? Use Kotlin.
Want to write iOS apps? Use Kotlin/Native
Do you want to write a desktop application? Use Kotlin – the TornadoFx
library (Wrapper JavaFX for Kotlin).
Do you want to write a graphics game? Use Kotlin again – LibKTX
library (LibGDX in Kotlin).
The boiler can also be used to create web applications. There are a number of libraries that support Kotlin such as Spring
or an official library from JetBrains, Ktor
We can use Kotlinx.html
to write a frontend.
And for the beginning, it’s all about Kotlin. It’s just the theory, but I think it’s fine to know about Kotlin.