Detecting sudden variations in web apps code smells’ density: A longitudinal study

Bibliographic Details
Main Author: Rio, A.
Publication Date: 2021
Other Authors: Abreu, F. B. e.
Language: eng
Source: Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
Download full: http://hdl.handle.net/10071/24447
Summary: Code smells are considered potentially harmful to software maintenance. Their introduction is dependent on the production of new code or the addition of smelly code produced by another team. Code smells survive until being refactored or the code where they stand is removed. Under normal conditions, we expect code smells density to be relatively stable throughout time. Anomalous (sudden) increases in this density are expected to hurt maintenance costs and the other way round. In the case of sudden increases, especially in pre-release tests in an automation server pipeline, detecting those outlier situations can trigger refactoring actions before releasing the new version. This paper presents a longitudinal study on the sudden variations in the introduction and removal of 18 server code smells on 8 PHP web apps, across several years. The study regards web applications but can be generalized to other domains, using other CS and tools. We propose a standardized detection criterion for this kind of code smell anomalies. Besides providing a retrospective view of the code smell evolution phenomenon, our detection approach, which is particularly amenable to graphical monitoring, can make software project managers aware of the need for enforcing refactoring actions.
id RCAP_ec17979176789918caebd0bca8f8bbb7
oai_identifier_str oai:repositorio.iscte-iul.pt:10071/24447
network_acronym_str RCAP
network_name_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository_id_str https://opendoar.ac.uk/repository/7160
spelling Detecting sudden variations in web apps code smells’ density: A longitudinal studyPHPCode smellsWeb appsSudden variationsAnomaly detectionOutliersCode smells are considered potentially harmful to software maintenance. Their introduction is dependent on the production of new code or the addition of smelly code produced by another team. Code smells survive until being refactored or the code where they stand is removed. Under normal conditions, we expect code smells density to be relatively stable throughout time. Anomalous (sudden) increases in this density are expected to hurt maintenance costs and the other way round. In the case of sudden increases, especially in pre-release tests in an automation server pipeline, detecting those outlier situations can trigger refactoring actions before releasing the new version. This paper presents a longitudinal study on the sudden variations in the introduction and removal of 18 server code smells on 8 PHP web apps, across several years. The study regards web applications but can be generalized to other domains, using other CS and tools. We propose a standardized detection criterion for this kind of code smell anomalies. Besides providing a retrospective view of the code smell evolution phenomenon, our detection approach, which is particularly amenable to graphical monitoring, can make software project managers aware of the need for enforcing refactoring actions.Springer2022-02-07T10:16:14Z2021-01-01T00:00:00Z20212022-02-07T10:05:00Zconference objectinfo:eu-repo/semantics/publishedVersionapplication/pdfhttp://hdl.handle.net/10071/24447eng978-3-030-85347-11865-092910.1007/978-3-030-85347-1_7Rio, A.Abreu, F. B. e.info:eu-repo/semantics/openAccessreponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiainstacron:RCAAP2024-07-07T03:16:49Zoai:repositorio.iscte-iul.pt:10071/24447Portal AgregadorONGhttps://www.rcaap.pt/oai/openaireinfo@rcaap.ptopendoar:https://opendoar.ac.uk/repository/71602025-05-28T18:19:35.944360Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiafalse
dc.title.none.fl_str_mv Detecting sudden variations in web apps code smells’ density: A longitudinal study
title Detecting sudden variations in web apps code smells’ density: A longitudinal study
spellingShingle Detecting sudden variations in web apps code smells’ density: A longitudinal study
Rio, A.
PHP
Code smells
Web apps
Sudden variations
Anomaly detection
Outliers
title_short Detecting sudden variations in web apps code smells’ density: A longitudinal study
title_full Detecting sudden variations in web apps code smells’ density: A longitudinal study
title_fullStr Detecting sudden variations in web apps code smells’ density: A longitudinal study
title_full_unstemmed Detecting sudden variations in web apps code smells’ density: A longitudinal study
title_sort Detecting sudden variations in web apps code smells’ density: A longitudinal study
author Rio, A.
author_facet Rio, A.
Abreu, F. B. e.
author_role author
author2 Abreu, F. B. e.
author2_role author
dc.contributor.author.fl_str_mv Rio, A.
Abreu, F. B. e.
dc.subject.por.fl_str_mv PHP
Code smells
Web apps
Sudden variations
Anomaly detection
Outliers
topic PHP
Code smells
Web apps
Sudden variations
Anomaly detection
Outliers
description Code smells are considered potentially harmful to software maintenance. Their introduction is dependent on the production of new code or the addition of smelly code produced by another team. Code smells survive until being refactored or the code where they stand is removed. Under normal conditions, we expect code smells density to be relatively stable throughout time. Anomalous (sudden) increases in this density are expected to hurt maintenance costs and the other way round. In the case of sudden increases, especially in pre-release tests in an automation server pipeline, detecting those outlier situations can trigger refactoring actions before releasing the new version. This paper presents a longitudinal study on the sudden variations in the introduction and removal of 18 server code smells on 8 PHP web apps, across several years. The study regards web applications but can be generalized to other domains, using other CS and tools. We propose a standardized detection criterion for this kind of code smell anomalies. Besides providing a retrospective view of the code smell evolution phenomenon, our detection approach, which is particularly amenable to graphical monitoring, can make software project managers aware of the need for enforcing refactoring actions.
publishDate 2021
dc.date.none.fl_str_mv 2021-01-01T00:00:00Z
2021
2022-02-07T10:16:14Z
2022-02-07T10:05:00Z
dc.type.driver.fl_str_mv conference object
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
status_str publishedVersion
dc.identifier.uri.fl_str_mv http://hdl.handle.net/10071/24447
url http://hdl.handle.net/10071/24447
dc.language.iso.fl_str_mv eng
language eng
dc.relation.none.fl_str_mv 978-3-030-85347-1
1865-0929
10.1007/978-3-030-85347-1_7
dc.rights.driver.fl_str_mv info:eu-repo/semantics/openAccess
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv application/pdf
dc.publisher.none.fl_str_mv Springer
publisher.none.fl_str_mv Springer
dc.source.none.fl_str_mv reponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron:RCAAP
instname_str FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron_str RCAAP
institution RCAAP
reponame_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
collection Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository.name.fl_str_mv Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
repository.mail.fl_str_mv info@rcaap.pt
_version_ 1833597336094244864