arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1808.00025cs.SE
收藏

基于Kotlin语言的Android应用质量实证研究

An Empirical Study on Quality of Android Applications written in Kotlin language

Bruno Gois Mateus, Matias Martinez

摘要:

内容:在过去的几年中,移动应用程序的开发人员有可能使用新的范例和工具来开发移动应用程序。例如,自2017年以来,Android开发人员可以使用Kotlin语言编写Android应用程序。Kotlin是一种与Java完全互操作的程序设计语言,它结合了面向对象和函数特性。目的:本文的目的是双重的。首先,它旨在研究Kotlin语言在开源Android应用程序开发中的采用程度,并衡量Android应用程序中的Kotlin代码量。其次,它旨在衡量使用Kotlin编写的Android应用程序的质量,并将其与使用Java编写的Android应用程序的质量进行比较。方法:我们首先定义了一种从开源Android应用程序数据集中检测Kotlin应用程序的方法。然后,我们分析这些应用程序来检测代码气味的实例,并计算应用程序的质量估计。最后,我们研究了Kotlin代码的引入如何影响Android应用程序的质量。结果如下:我们的实验发现,在一个包含2,167个开源应用程序的数据集中,有11.26%的应用程序是(部分或全部)使用Kotlin语言编写的。我们发现,Kotlin代码的引入提高了大多数最初用Java编写的Android应用程序的质量(就代码气味的存在而言)。

英文摘要:

Context: During the last years, developers of mobile applications have the possibility to use new paradigms and tools for developing mobile applications. For instance, since 2017 Android developers have the official support to write Android applications using Kotlin language. Kotlin is programming language fully interoperable with Java that combines object-oriented and functional features. Objective: The goal of this paper is twofold. First, it aims to study the degree of adoption of Kotlin language on development of open-source Android applications and to measure the amount of Kotlin code inside Android applications. Secondly, it aims to measure the quality of Android applications that are written using Kotlin and to compare it with the quality of Android applications written using Java. Method: We first defined a method to detect Kotlin applications from a dataset of open-source Android applications. Then, we analyzed those applications to detect instances of code smells and computed an estimation of quality of the applications. Finally, we studied how the introduction of Kotlin code impacts on the quality of an Android application. Results: Our experiment found that 11.26% of applications from a dataset with 2,167 open-source applications have been written (partially or fully) using Kotlin language. We found that the introduction of Kotlin code increases the quality (in terms of presence of code smells) of the majority of the Android applications initially written in Java.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑