Are architectural smells independent from code smells? An empirical study

被引:28
|
作者
Fontana, Francesca Arcelli [1 ,2 ]
Lenarduzzi, Valentina [3 ]
Roveda, Riccardo [4 ]
Taibi, Davide [3 ]
机构
[1] Univ Milano Bicocca, Milan, Italy
[2] Univ Milano Bicocca, Software Evolut & Reverse Engn Lab, Milan, Italy
[3] Tampere Univ, Tampere, Finland
[4] Alten Italia, Milan, Italy
关键词
Code smells; Architectural smells; Technical debt; Empirical analysis; BAD SMELLS; IMPACT;
D O I
10.1016/j.jss.2019.04.066
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Background. Architectural smells and code smells are symptoms of bad code or design that can cause different quality problems, such as faults, technical debt, or difficulties with maintenance and evolution. Some studies show that code smells and architectural smells often appear together in the same file. The correlation between code smells and architectural smells, however, is not clear yet: some studies on a limited set of projects have claimed that architectural smells can be derived from code smells, while other studies claim the opposite. Objective. The goal of this work is to understand whether architectural smells are independent from code smells or can be derived from a code smell or from one category of them. Method. We conducted a case study analyzing the correlations among 19 code smells, six categories of code smells, and four architectural smells. Results. The results show that architectural smells are correlated with code smells only in a very low number of occurrences and therefore cannot be derived from code smells. Conclusion. Architectural smells are independent from code smells, and therefore deserve special attention by researchers, who should investigate their actual harmfulness, and practitioners, who should consider whether and when to remove them.(C) 2019 Elsevier Inc. All rights reserved.
引用
收藏
页码:139 / 156
页数:18
相关论文
共 50 条
  • [1] Empirical Study on Code Smells in iOS Applications
    Rahkema, Kristiina
    Pfahl, Dietmar
    [J]. 2020 IEEE/ACM 7TH INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS, MOBILESOFT, 2020, : 61 - 65
  • [2] An Empirical Study of the Performance Impacts of Android Code Smells
    Hecht, Geoffrey
    Moha, Naouel
    Rouvoy, Romain
    [J]. 2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), 2016, : 59 - 69
  • [3] An empirical study of Android behavioural code smells detection
    Prestat, Dimitri
    Moha, Naouel
    Villemaire, Roger
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (07)
  • [4] An empirical study of Android behavioural code smells detection
    Dimitri Prestat
    Naouel Moha
    Roger Villemaire
    [J]. Empirical Software Engineering, 2022, 27
  • [5] An Empirical Study of Code Smells in Java']JavaScript Projects
    Saboury, Amir
    Musavi, Pooya
    Khomh, Foutse
    Antoniol, Giulio
    [J]. 2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2017, : 294 - 305
  • [6] A taxonomy and an initial empirical study of bad smells in code
    Mäntylä, M
    Vanhanen, J
    Lassenius, C
    [J]. INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 2003, : 381 - 384
  • [7] A Study on Architectural Smells Prediction
    Fontana, Francesca Arcelli
    Avgeriou, Paris
    Pigazzini, Ilaria
    Roveda, Riccardo
    [J]. 2019 45TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2019), 2019, : 333 - 337
  • [8] Software Code Smells and Defects: An Empirical Investigation
    Brown, Reuben
    Greer, Des
    [J]. PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, ENASE 2023, 2023, : 570 - 580
  • [9] Empirical study of the relationship between design patterns and code smells
    Alfadel, Mahmoud
    Aljasser, Khalid
    Alshayeb, Mohammad
    [J]. PLOS ONE, 2020, 15 (04):
  • [10] An Analytical Study of Code Smells
    Bamizadeh, Lida
    Kumar, Binod
    Kumar, Ajay
    Shirwaikar, Shailaja
    [J]. TEHNICKI GLASNIK-TECHNICAL JOURNAL, 2021, 15 (01): : 121 - 126