Smart phones are becoming an important part of our every day life. The Android operating system is the most common and popular operating system amongst users and developers. In this work we studied the ways in which the Android application development are usually written in the Java programming language. There is a new programming language on the market called Kotlin. We wanted to find out if Kotlin could replace the giant Java, in which areas it is better, where it is comparable and where it is worse.
We introduced the properties of both languages when developing applications for the Android platform. We created applications in both language to compare their compatabilities and workflow. We compared tehnical properties, which included build time, CPU usage, RAM usage and method count. We also carried out a simple survey, in which we questioned other colleagues about their thoughts on the two programming languages.
We concluded that the Kotlin language is comparable with the Java language, when using incremental build, but is noticeably slower when using clean build. The two languages are comparable in effectiveness, including in CPU and RAM usage. When translating from Kotlin using the ProGuard tool, we achieved almost the same number of methods as we did when translating from Java. The results of the survey showed, that the respondents considered Kotlin to be more readable than Java.
In this study we have concluded that the Kotlin programming language is a good alternative to Java. Kotlin solves many problems, which are dealt with by Java application programmers. Kotlin enables us to write a readable source code, which means easier navigation and editing.
|