Prevalence of Bad Smells in C# Projects

Amanda Lima Sabóia, Antônio Diogo Forte Martins, Cristiano Sousa Melo, José Maria Monteiro, Cidcley Teixeira de Souza, Javam de Castro Machado

2020

Abstract

Bad smell can be defined as structures in code that suggest the possibility of refactoring. In object-oriented languages such as C# and Java, Bad Smells are heavily exploited as a way to avoid potential software failures. The presence of a high number of bad smells in a software project makes the system maintenance and evolution hard. So, identifying smells in code and refactoring them helps to improve and maintain software quality. Anti-patterns are considered inadequate programming practices, but not an error, they are bad solutions to recurring software problems. In this work, we propose an exploratory study on open source projects written in C# and published in GitHub. We empirically analyzed a total of 25 projects, studying the prevalence of Bad Smells, in a quantitatively and qualitatively manner, and their relationship in order to identify possible anti-patterns. Our results showed that implementation smells are the most common. Besides, some smells occur together, such as Missing Default and Unutilized Abstraction that are perfectly correlated, and ILS and IMN detected by association rules. Thus, the proposed study aims to assist software developers in avoiding future problems during the development of C# projects.

Download


Paper Citation


in Harvard Style

Sabóia A., Martins A., Melo C., Monteiro J., Teixeira de Souza C. and Machado J. (2020). Prevalence of Bad Smells in C# Projects.In Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 2: ICEIS, ISBN 978-989-758-423-7, pages 424-431. DOI: 10.5220/0009580204240431


in Bibtex Style

@conference{iceis20,
author={Amanda Sabóia and Antônio Martins and Cristiano Melo and José Monteiro and Cidcley Teixeira de Souza and Javam Machado},
title={Prevalence of Bad Smells in C# Projects},
booktitle={Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 2: ICEIS,},
year={2020},
pages={424-431},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0009580204240431},
isbn={978-989-758-423-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 2: ICEIS,
TI - Prevalence of Bad Smells in C# Projects
SN - 978-989-758-423-7
AU - Sabóia A.
AU - Martins A.
AU - Melo C.
AU - Monteiro J.
AU - Teixeira de Souza C.
AU - Machado J.
PY - 2020
SP - 424
EP - 431
DO - 10.5220/0009580204240431