论文标题

Android代码气味:从介绍到重构

Android Code Smells: From Introduction to Refactoring

论文作者

Habchi, Sarra, Moha, Naouel, Rouvoy, Romain

论文摘要

面向对象的代码气味是软件工程中众所周知的概念,它是指在软件系统中通常观察到的不良设计和开发实践。随着移动应用程序的出现,研究社区已经将新的代码气味确定为特定于移动的代码气味。这些代码气味作为重要性能问题或瓶颈的症状表示。尽管对这些新代码的气味进行了多次实证研究,但它们沿变化历史的扩散和进化仍不清楚。我们在本文中介绍了一项大规模的实证研究,检查了Android代码气味的引入,演变和去除。这项研究依赖于从324个应用程序中提取的数据,对561种气味避免施法的手动分析以及与25个Android开发人员进行了讨论。我们的发现表明,移动特异性代码气味的高扩散不是释放压力的结果。我们还发现,去除这些代码的气味通常是维护活动的副作用,因为即使开发人员知道它们也不会重构气味。

Object-oriented code smells are well-known concepts in software engineering that refer to bad design and development practices commonly observed in software systems. With the emergence of mobile apps, new classes of code smells have been identified by the research community as mobile-specific code smells. These code smells are presented as symptoms of important performance issues or bottlenecks. Despite the multiple empirical studies about these new code smells, their diffuseness and evolution along change histories remains unclear. We present in this article a large-scale empirical study that inspects the introduction, evolution, and removal of Android code smells. This study relies on data extracted from 324 apps, a manual analysis of 561 smell-removing commits, and discussions with 25 Android developers. Our findings reveal that the high diffuseness of mobile-specific code smells is not a result of releasing pressure. We also found that the removal of these code smells is generally a side effect of maintenance activities as developers do not refactor smell instances even when they are aware of them.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源