arrow
返回

Code smells for Model-View-Controller architectures

模型-视图-控制器架构的代码气味

delete2017-09-12
delete55
PRE
AI
M
Maurício Aniche *
Gabriele Bavota 封面图
Gabriele Bavota (Gabriele Bavota)
C
Christoph Treude
M
Marco Aurélio Gerosa
Arie van Deursen 封面图
Arie van Deursen (Arie van Deursen)
DOI:10.1007/s10664-017-9540-2delete
delete原文链接
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Code smells
Code anomalies
Code anti-patterns
Software maintenance
Code quality
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

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
err分享
err收藏
Automatic detection of code smells using metrics and CodeT5 embeddings: a case study in C#使用指标和CodeT5嵌入进行代码异味自动检测:C#案例研究
err2024-02-24
err0
PREAI
errAleksandar Kovačević; Nikola Luburić; Jelena Slivka; Simona Prokić; Katarina-Glorija Grujić; Dragan Vidaković; Goran Sladić
err分享
err收藏
Detecting code smells in React-based Web apps
err2023-03-01
err4
PREAI
errFerreira, Fabio; Valente, Marco Tulio
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

D
delft university of technology
学者数:
2.1K
论文数: 879
被引数: 2.3W
U
University of Adelaide
学者数:
567
论文数: 282
被引数: 2.2W
N
Northern Arizona University
学者数:
354
论文数: 179
被引数: 4.5K
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容