What is Kotlin?

Kotlin is a highly effective modern programming language developed by JetBrains. It has a very clear and concise syntax, which makes your code easy to read.

Kotlin is widely used around the world, and its popularity among developers is constantly growing. Many developers who use Kotlin note that it makes their work faster and more exciting 🙂

Knowledge of Kotlin allows developers to write mobile, server-side, and desktop applications, as well as useful frameworks and libraries. As a general-purpose language, it can be used in many spheres, such as financial services, telecommunications, embedded systems, medicine, development tools (like IntelliJ IDEA), and so on.

A multiplatform language

Kotlin is a multiplatform language.

  • JVM: Kotlin is fully interoperable with Java, which means Kotlin works great with all existing Java code and libraries. It also allows companies to make a gradual migration from Java to Kotlin because Java code can access Kotlin code, too. At the same time, developers can use Kotlin as the only language for their projects without Java at all.
  • Android: using Kotlin, you can create mobile applications for the most used operating system in the world.
  • JS: Kotlin is also compatible with JavaScript, which enables you to develop client-side web applications and run them in a browser.
  • Native: Kotlin code can be converted into a file that can be run on any OS such as Windows, Linux, iOS, and macOS.

Among all these opportunities, modern programmers prefer mobile and server-side development, but other areas are gaining popularity as well.

Features

Kotlin is designed as a pragmatic language, which means that its main purpose is solving real-world problems rather than completing research purposes.

It is also important that Kotlin supports multiple programming paradigms, such as imperative programming, object-oriented programming, generic programming, functional programming, and more. You will learn about these paradigms throughout the course.

Last but not least, Kotlin is a tool-friendly language, which means all popular development tools, such as IntelliJ IDEA, Eclipse, and Android Studio, are compatible with it.

A brief history

In July 2011, JetBrains unveiled the Kotlin Project, a new language for the Java Platform, which had been in development for a year. The name comes from Kotlin Island near St. Petersburg, Russia. The primary goal of this project was to provide a safer and more concise alternative to Java in all the contexts where Java is currently used.

In 2016, the first official stable version was released (Kotlin v1.0). The developer community was already interested in using this language, especially on Android.

At the Google I/O 2017 conference, Google announced first-class support for Kotlin on Android. Chet Haase, the chief advocate for Android, said: “We understand that not everybody is on Kotlin right now, but we believe that you should get there”.

At this moment, Kotlin is considered as a general-purpose language for many platforms, not only for Android. The language has several releases a year. The latest version can be found on the official site.

A sample Kotlin program

Here is a sample of a simple Kotlin program that prints Hello, Kotlin!.

fun main() {
    println("Hello, Kotlin!")
}

For now, you do not need to understand how this code works, just enjoy it! 🙂

Conclusion

Now, you know what Kotlin is, how it developed, and where it is used. You’ve learned some of the characteristic features of the language that make it so special. You’ve also seen your first lines of Kotlin code. There’ll be more soon, promise.

Leave a Reply

Your email address will not be published.