...
首页> 外文期刊>Information and software technology >Effectiveness of Kotlin vs. Java in android app development tasks
【24h】

Effectiveness of Kotlin vs. Java in android app development tasks

机译:Kotlin与Java在Android应用程序开发任务中的有效性

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Context: Kotlin is a new programming language representing an alternative to Java; they both target the same JVM and can safely coexist in the same application. Kotlin is advertised as capable to solve several known limitations of Java. Recent surveys show that Kotlin achieved a relevant diffusion among Java developers. Goal: We planned to empirically assess a few typical promises of Kotlin w.r.t. known Java's limitations, in terms of development effectiveness, maintainability, and ease of development. Method: Our experiment involved 27 teams of 4 people each that completed a set of maintenance tasks (both defect correction and feature addition) on Android apps written in either Java or Kotlin. In addition to the number of fixed defects, effort, and code size, we collected, though a questionnaire, the participants' perceptions about the avoidance of known pitfalls. Results: We did not observe any significant difference in terms of maintainability between the two languages. We found a significant difference regarding the amount of code written, which constitutes evidence of better conciseness of Kotlin. Concerning ease of development, the frequency of NullPointerExceptions reported by the subjects was significantly lower when developing in Kotlin. On the other hand, no significant difference was found in the occurrence of other common Java pitfalls. Finally, the IDE support was deemed better for Java than Kotlin. Conclusions: Some of the promises of Kotlin to be a "better Java" have been confirmed by our empirical assessment. Evidence suggests that the effort in transitioning to Kotlin can provide some advantages to Java developers, especially regarding code conciseness. Our results may serve as the basis for further investigations on the properties of the language.
机译:背景:Kotlin是一种新的编程语言,代表Java的替代品;它们都针对相同的JVM,可以安全地在相同的应用中共存。 Kotlin被宣传为能够解决Java的若干已知局限性。最近的调查表明,Kotlin在Java开发人员之间取得了相关的传播。目标:我们计划经验评估kotlin w.r.t的典型承诺。在开发有效性,可维护性和发展方面,已知的Java的局限性。方法:我们的实验涉及27个4人的团队,每个组合在Java或Kotlin编写的Android应用程序上完成了一套维护任务(缺陷校正和功能添加)。除了固定缺陷,努力和代码规模的数量之外,我们还收集了对避免已知陷阱的参与者的看法。结果:我们没有观察两种语言之间可维护性的任何显着差异。我们发现有关所写的代码数量的重要差异,这构成了Kotlin更好简明的证据。关于易于发展,当Kotlin开发时,受试者报告的Nullpointerexceptions的频率明显降低。另一方面,在其他常见的Java陷阱的发生中没有发现显着差异。最后,对于Java而言,IDE支持比Kotlin更好。结论:我们的实证评估已经确认了Kotlin的一些承诺是“更好的Java”。证据表明,转换到Kotlin的努力可以为Java开发人员提供一些优势,特别是关于代码简洁。我们的结果可以作为进一步调查语言性质的基础。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号