Android code smells: From introduction to refactoring

被引:14
作者
Habchi, Sarra [1 ]
Moha, Naouel [2 ]
Rouvoy, Romain [3 ]
机构
[1] Univ Luxembourg, Luxembourg, Luxembourg
[2] Ecole Technol Super, Montreal, PQ, Canada
[3] Univ Lille, IUF, INRIA, Lille, France
关键词
Android (operating system);
D O I
10.1016/j.jss.2021.110964
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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. (C) 2021 Elsevier Inc. All rights reserved.
引用
收藏
页数:16
相关论文
共 45 条
  • [1] Android, 2017, ANDR LINT CHECKS
  • [2] Android, 2019, ANDR VERS
  • [3] Carette A, 2017, 2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), P115, DOI 10.1109/SANER.2017.7884614
  • [4] A POWER PRIMER
    COHEN, J
    [J]. PSYCHOLOGICAL BULLETIN, 1992, 112 (01) : 155 - 159
  • [5] Duchien L., 2015, RR8693 INRIA LILL
  • [6] A Graph-based Dataset of Commit History of Real-World Android apps
    Geiger, Franz-Xaver
    Malavolta, Ivano
    Pascarella, Luca
    Palomba, Fabio
    Di Nucci, Dario
    Bacchelli, Alberto
    [J]. 2018 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR), 2018, : 30 - 33
  • [7] GitHub, 2010, FIX LIC
  • [8] GitHub, 2013, REM LIC
  • [9] GitHub, 2012, REM NLMR MOD
  • [10] GitHub, 2012, REM NLMR