Investigating the relation between lexical smells and change- and fault-proneness: an empirical study

被引:9
|
作者
Guerrouj, Latifa [1 ]
Kermansaravi, Zeinab [2 ]
Arnaoudova, Venera [3 ]
Fung, Benjamin C. M. [4 ]
Khomh, Foutse [2 ]
Antoniol, Giuliano [2 ]
Gueheneuc, Yann-Gael [2 ]
机构
[1] Ecole Technol Super, Montreal, PQ, Canada
[2] Ecole Polytech, Montreal, PQ, Canada
[3] Washington State Univ, Pullman, WA 99164 USA
[4] McGill Univ, Montreal, PQ, Canada
关键词
Lexical smells; Design smells; Change-proneness; Fault-proneness; Empirical study; IDENTIFIER NAMES; CODE SMELLS; BAD SMELLS;
D O I
10.1007/s11219-016-9318-6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Past and recent studies have shown that design smells which are poor solutions to recurrent design problems make object-oriented systems difficult to maintain, and that they negatively impact the class change- and fault-proneness. More recently, lexical smells have been introduced to capture recurring poor practices in the naming, documentation, and choice of identifiers during the implementation of an entity. Although recent studies show that developers perceive lexical smells as impairing program understanding, no study has actually evaluated the relationship between lexical smells and software quality as well as their interaction with design smells. In this paper, we detect 29 smells consisting of 13 design smells and 16 lexical smells in 30 releases of three projects: ANT, ArgoUML, and Hibernate. We analyze to what extent classes containing lexical smells have higher (or lower) odds to change or to be subject to fault fixing than other classes containing design smells. Our results show and bring empirical evidence on the fact that lexical smells can make, in some cases, classes with design smells more fault-prone. In addition, we empirically demonstrate that classes containing design smells only are more change- and fault-prone than classes with lexical smells only.
引用
收藏
页码:641 / 670
页数:30
相关论文
共 50 条
  • [41] Are Slice-Based Cohesion Metrics Actually Useful in Effort-Aware Post-Release Fault-Proneness Prediction? An Empirical Study
    Yang, Yibiao
    Zhou, Yuming
    Lu, Hongmin
    Chen, Lin
    Chen, Zhenyu
    Xu, Baowen
    Leung, Hareton
    Zhang, Zhenyu
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (04) : 331 - 357
  • [42] Exploring the relationship of a file's history and its fault-proneness: An empirical method and its application to open source programs
    Illes-Seifert, Timea
    Paech, Barbara
    INFORMATION AND SOFTWARE TECHNOLOGY, 2010, 52 (05) : 539 - 558
  • [43] Circular Dependencies and Change-Proneness: An Empirical Study
    Oyetoyan, Tosin Daniel
    Dietrich, Jens
    Falleri, Jean-Remy
    Jezek, Kamil
    2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2015, : 241 - 250
  • [44] Applying design metrics to predict fault-proneness: A case study on a large-scale software system
    Wong, W. Eric
    Horgan, Joseph R.
    Syring, Michael
    Zage, Wayne
    Zage, Dolores
    Software - Practice and Experience, 2000, 30 (14) : 1587 - 1608
  • [45] An empirical study on the influence of pattern roles on change-proneness
    Daryl Posnett
    Christian Bird
    Prem Dévanbu
    Empirical Software Engineering, 2011, 16 : 396 - 423
  • [46] An empirical study on the influence of pattern roles on change-proneness
    Posnett, Daryl
    Bird, Christian
    Devanbu, Prem
    EMPIRICAL SOFTWARE ENGINEERING, 2011, 16 (03) : 396 - 423
  • [47] Are Multi-Language Design Smells Fault-Prone? An Empirical Study
    Abidi, Mouna
    Rahman, Md Saidur
    Openja, Moses
    Khomh, Foutse
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2021, 30 (03)
  • [48] Empirical study of the relationship between design patterns and code smells
    Alfadel, Mahmoud
    Aljasser, Khalid
    Alshayeb, Mohammad
    PLOS ONE, 2020, 15 (04):
  • [49] An empirical study into the relationship between class features and test smells
    Tahir, Amjed
    Counsell, Steve
    MacDonell, Stephen G.
    2016 23RD ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2016), 2016, : 137 - 144
  • [50] An Empirical Study of Evaluating the Correlation between Class Stability and Bad Smells
    Yahia, Mohammad H.
    Amro, Mohammad I.
    Alshayeb, Mohammad R.
    2021 22ND INTERNATIONAL ARAB CONFERENCE ON INFORMATION TECHNOLOGY (ACIT), 2021, : 14 - 18