Salvato in:
Dettagli Bibliografici
Autori principali: Sukhova, Anna, Akhundov, Alexey, Verzakov, Efim, Bugayenko, Yegor
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2403.17430
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909150251843584
author Sukhova, Anna
Akhundov, Alexey
Verzakov, Efim
Bugayenko, Yegor
author_facet Sukhova, Anna
Akhundov, Alexey
Verzakov, Efim
Bugayenko, Yegor
contents In object-oriented programming languages, a belief exists that classes with -Er/-Or and -Utils suffixes are "code smells" because they take over a lot of functional responsibility, turning out to be bulky and complicated, and therefore making it more difficult to maintain the code. In order to validate this intuition, we analyzed complexity and cohesion of 13,861 Java classes from 212 unique open-source GitHub repositories. We found out that average values of Cyclomatic Complexity and Cognitive Complexity metrics are at least 2.5 times higher when suffixes are present.
format Preprint
id arxiv_https___arxiv_org_abs_2403_17430
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Java Classes with "-Er" and "-Utils" Suffixes Have Higher Complexity
Sukhova, Anna
Akhundov, Alexey
Verzakov, Efim
Bugayenko, Yegor
Programming Languages
In object-oriented programming languages, a belief exists that classes with -Er/-Or and -Utils suffixes are "code smells" because they take over a lot of functional responsibility, turning out to be bulky and complicated, and therefore making it more difficult to maintain the code. In order to validate this intuition, we analyzed complexity and cohesion of 13,861 Java classes from 212 unique open-source GitHub repositories. We found out that average values of Cyclomatic Complexity and Cognitive Complexity metrics are at least 2.5 times higher when suffixes are present.
title Java Classes with "-Er" and "-Utils" Suffixes Have Higher Complexity
topic Programming Languages
url https://arxiv.org/abs/2403.17430