arrow
Return

Code smells for Model-View-Controller architectures

delete2017-09-12
delete55
PRE
AI
M
Maurício Aniche *
Gabriele Bavota cover
Gabriele Bavota (Gabriele Bavota)
C
Christoph Treude
M
Marco Aurélio Gerosa
Arie van Deursen cover
Arie van Deursen (Arie van Deursen)
DOI:10.1007/s10664-017-9540-2delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Previous studies have shown the negative effects that low-quality code can have on maintainability proxies, such as code change- and defect-proneness. One of the symptoms of low-quality code are code smells, defined as sub-optimal implementation choices. While this definition is quite general and seems to suggest a wide spectrum of smells that can affect software systems, the research literature mostly focuses on the set of smells defined in the catalog by Fowler and Beck, reporting design issues that can potentially affect any kind of system, regardless of their architecture (e.g., Complex Class). However, systems adopting a specific architecture (e.g., the Model-View-Controller pattern) can be affected by other types of poor practices that only manifest themselves in the chosen architecture. We present a catalog of six smells tailored to MVC applications and defined by surveying/interviewing 53 MVC developers. We validate our catalog from different perspectives. First, we assess the relationship between the defined smells and the code change- and defect-proneness. Second, we investigate when these smells are introduced and how long they survive. Third, we survey 21 developers to verify their perception of the defined smells. Fourth, since our catalog has been mainly defined together with developers adopting a specific Java framework in their MVC applications (e.g., Spring), we interview four expert developers working with different technologies for the implementation of their MVC applications to check the generalizability of our catalog. The achieved results show that the defined Web MVC smells (i) more often than not, have more chances of being subject to changes and defects, (ii) are mostly introduced when the affected file (i.e., the file containing the smell) is committed for the first time in the repository and survive for long time in the system, (iii) are perceived by developers as severe problems, and (iv) generalize to other languages/frameworks.
Keywords:
Code smells
Code anomalies
Code anti-patterns
Software maintenance
Code quality
Crowdsmelling: A preliminary study on using collective knowledge in code smells detection
err2022-03-17
err8
PREAI
errdos Reis, Jose Pereira; Brito e Abreu, Fernando; Carneiro, Glauco de Figueiredo
errShare
errSave
Are you smelling it? Investigating how similar developers detect code smells
err2018-01-01
err32
PREAI
errHozano, Mario; Garcia, Alessandro; Fonseca, Baldoino; Costa, Evandro
errShare
errSave
Do code reviews lead to fewer code smells?
err2024-09-01
err2
PREAI
errTuna, Erdem; Seaman, Carolyn; Tuzun, Eray
errShare
errSave
Automatic detection of code smells using metrics and CodeT5 embeddings: a case study in C#
err2024-02-24
err0
PREAI
errAleksandar Kovačević; Nikola Luburić; Jelena Slivka; Simona Prokić; Katarina-Glorija Grujić; Dragan Vidaković; Goran Sladić
errShare
errSave
Detecting code smells in React-based Web apps
err2023-03-01
err4
PREAI
errFerreira, Fabio; Valente, Marco Tulio
errShare
errSave
A Systematic Literature Review on the Code Smells Datasets and Validation Mechanisms
err2023-07-13
err6
errOAAI
errZakeri-Nasrabadi, Morteza; Parsa, Saeed; Esmaili, Ehsan; Palomba, Fabio
errShare
errSave
How developers perceive smells in source code: A replicated study
err2017-12-01
err63
PREAI
errTaibi, Davide; Janes, Andrea; Lenarduzzi, Valentina
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

D
delft university of technology
Scholars:
2.1K
Papers: 879
Citations: 2.3W
U
University of Adelaide
Scholars:
567
Papers: 282
Citations: 2.2W
N
Northern Arizona University
Scholars:
354
Papers: 179
Citations: 4.5K
researcher View more organizations
Cited Papers

Cited Papers

errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
SIMES: A simulator for hybrid electrical energy storage systems
err2013-09-01
err0
errOAAI
errSiyu Yue; Di Zhu; Yanzhi Wang; Massoud Pedram; Younghyun Kim; Naehyuck Chang
errShare
errSave
An exploratory study of the impact of antipatterns on class change- and fault-proneness
err2011-08-06
err291
PREAI
errKhomh, Foutse; Di Penta, Massimiliano; Gueheneuc, Yann-Gael; Antoniol, Giuliano
errShare
errSave
researcher View more