Quantifying Anemia and Bloodshot of Layers in Web Applications from the Perspective of Code Smell[J]. Acta Electronica Sinica, 2020, 48(4): 772-780.
DOI:
Quantifying Anemia and Bloodshot of Layers in Web Applications from the Perspective of Code Smell[J]. Acta Electronica Sinica, 2020, 48(4): 772-780. DOI: 10.3969/j.issn.0372-2112.2020.04.019.
Quantifying Anemia and Bloodshot of Layers in Web Applications from the Perspective of Code Smell
Domain Models shape the Domain Layer of Web Applications.Anemic Domain Models (ADMs) are Domain Models holding only data. States of ADMs are maintained by classes in other layers
causing the latter bloodshot. However
there lacks research revealing the significance of impact that anemia and bloodshot of layers pose on maintainability. To quantify the significance
this paper assesses intensity of 3 Code Smells (Feature Envy
Blob and Data Class) as evaluation standards. Through an experiment conducted on 91 Java projects and multiple releases of 10 Java Web applications
this paper concludes that over 75% of the projects are affected. As the impact persists
correlations of the intensities exist among different classes of a project as well as same classes in different releases of a project.