Detection strategies: metrics-based rules for detecting design flaws
The DOI matches its Crossref record; 22 of the 22 references it cites were found in a registry or an index.
Abstract
In order to support the maintenance of an object-oriented software system, the quality of its design must be evaluated using adequate quantification means. In spite of the current extensive use of metrics, if used in isolation metrics are oftentimes too fine grained to quantify comprehensively an investigated design aspect (e.g., distribution of system's intelligence among classes). To help developers and maintainers detect and localize design problems in a system, we propose a novel mechanism - called detection strategy - for formulating metrics-based rules that capture deviations from good design principles and heuristics. Using detection strategies an engineer can directly localize classes or methods affected by a particular design flaw (e.g., God Class), rather than having to infer the real design problem from a large set of abnormal metric values. We have defined such detection strategies for capturing around ten important flaws of object-oriented design found in the literature and validated the approach experimentally on multiple large-scale case-studies.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(1994) · Cited by 21,711
McCabe, T. J. (1976) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1976.233837 · Cited by 6,059
A metrics suite for object oriented design
Chidamber, S. R., & Kemerer, C. F. (1994) · IEEE Transactions on Software Engineering · doi:10.1109/32.295895 · Cited by 5,669
Refactoring: Improving the Design of Existing Code
Fowler, M. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-45672-4_31 · Cited by 5,591
Object-Oriented Software Construction
Meyer, B. (1988) · UCLA - Biblioteca de Ciencias y Tecnologia Felix Morales Bueno · Cited by 4,011
Software Metrics: A Rigorous and Practical Approach
Fenton, N., & Pfleeger, S. L. (2013) · Cited by 2,509
Graphical Methods for Data Analysis.
Healy, M. J. R., Chambers, J. M., Cleveland, W. S., Kleiner, B., & Tukey, P. A. (1984) · Journal of the Royal Statistical Society. Series A (General) · doi:10.2307/2981587 · Cited by 2,315
Refactoring improving the design of existing code
Saca, M. A. (2017) · 2017 IEEE 37th Central America and Panama Convention (CONCAPAN XXXVII) · doi:10.1109/concapan.2017.8278488 · Cited by 2,054
Object-oriented software construction
America, P. (1989) · Science of Computer Programming · doi:10.1016/0167-6423(89)90034-8 · Cited by 2,008
Graphical Methods for Data Analysis.
Fisher, N. I., Chambers, J. M., Cleveland, W. S., Kleiner, B., & Tukey, P. A. (1984) · Biometrics · doi:10.2307/2531418 · Cited by 1,982
Cited by
DECOR: A Method for the Specification and Detection of Code and Design Smells
Moha, N., Gueheneuc, Y.-G., Duchien, L., & Le Meur, A.-F. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2009.50 · Cited by 803
An exploratory study of the impact of antipatterns on class change- and fault-proneness
Khomh, F., Penta, M. D., Guéhéneuc, Y.-G., & Antoniol, G. (2012) · Empirical Software Engineering · doi:10.1007/s10664-011-9171-y · Cited by 395
Abbes, M., Khomh, F., Gueheneuc, Y.-G., & Antoniol, G. (2011) · 2011 15th European Conference on Software Maintenance and Reengineering · doi:10.1109/csmr.2011.24 · Cited by 309
An Exploratory Study of the Impact of Code Smells on Software Change-proneness
Khomh, F., Di Penta, M., & Gueheneuc, Y.-G. (2009) · 2009 16th Working Conference on Reverse Engineering · doi:10.1109/wcre.2009.28 · Cited by 306
Palomba, F., Bavota, G., Penta, M. D., Fasano, F., Oliveto, R., & Lucia, A. D. (2018) · Empirical Software Engineering · doi:10.1007/s10664-017-9535-z · Cited by 305
Detecting code smells using machine learning techniques: Are we there yet?
Di Nucci, D., Palomba, F., Tamburri, D. A., Serebrenik, A., & De Lucia, A. (2018) · 2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner.2018.8330266 · Cited by 305
Azeem, M. I., Palomba, F., Shi, L., & Wang, Q. (2019) · Information and Software Technology · doi:10.1016/j.infsof.2018.12.009 · Cited by 289
Mining Version Histories for Detecting Code Smells
Palomba, F., Bavota, G., Penta, M. D., Oliveto, R., Poshyvanyk, D., & De Lucia, A. (2015) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2014.2372760 · Cited by 259
Do They Really Smell Bad? A Study on Developers' Perception of Bad Code Smells
Palomba, F., Bavota, G., Di Penta, M., Oliveto, R., & De Lucia, A. (2014) · 2014 IEEE International Conference on Software Maintenance and Evolution · doi:10.1109/icsme.2014.32 · Cited by 251
“Marinescu [6] formulate metric-based rules that capture deviations from good design principles and heuristics.”
BackgroundThe evolution and impact of code smells: A case study of two open source systems
Olbrich, S., Cruzes, D. S., Basili, V., & Zazworka, N. (2009) · 2009 3rd International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem.2009.5314231 · Cited by 245
“This approach was later refined in [14], [15] and [16] with the introduction of metric based detection strategies.”
BackgroundDetecting bad smells in source code using change history information
Palomba, F., Bavota, G., Di Penta, M., Oliveto, R., De Lucia, A., & Poshyvanyk, D. (2013) · 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2013.6693086 · Cited by 234
“There exist a number of approaches that detect smells in source code to alert developers of their presence [5], [6], [7].”
BackgroundAn Empirical Study of RefactoringChallenges and Benefits at Microsoft
Kim, M., Zimmermann, T., & Nagappan, N. (2014) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2014.2318734 · Cited by 231
“class design defects [44] and Marinescu identifies design flaws using software metrics [45].”
MethodIdentifying Architectural Bad Smells
Garcia, J., Popescu, D., Edwards, G., & Medvidovic, N. (2009) · 2009 13th European Conference on Software Maintenance and Reengineering · doi:10.1109/csmr.2009.59 · Cited by 220
“Although bad smells were originally based on subjective intuitions of bad code practice, recent work has developed ways to detect code smells based on metrics [15] and has investigated the impact of bad smells using historical information [13].”
BackgroundMeasurement and quality in object-oriented design
Marinescu, R. (2005) · 21st IEEE International Conference on Software Maintenance (ICSM'05) · doi:10.1109/icsm.2005.63 · Cited by 211
“Thus, apart from the thesis itself [11], several papers [8, 10, 12, 13, 16] were accepted in the mainstream conferences of the maintenace and reengineering community.”
Self-citationAre test smells really harmful? An empirical study
Bavota, G., Qusef, A., Oliveto, R., De Lucia, A., & Binkley, D. (2015) · Empirical Software Engineering · doi:10.1007/s10664-014-9313-0 · Cited by 206
“Note that all techniques described above explicitly focus on code smells, despite some of them can be easily adapted to detect test smells (see e.g., Marinescu (2004) and Moha et al. (2010)).”
BackgroundIdentifying self-admitted technical debt in open source projects using text mining
Huang, Q., Shihab, E., Xia, X., Lo, D., & Li, S. (2018) · Empirical Software Engineering · doi:10.1007/s10664-017-9522-4 · Cited by 194
“The majority of the prior work focused on using static source code analysis to detect technical debt (i.e., code smells) (Marinescu 2004; Marinescu et al. 2010).”
BackgroundSome Code Smells Have a Significant but Small Effect on Faults
Hall, T., Zhang, M., Bowes, D., & Sun, Y. (2014) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/2629648 · Cited by 174
Subjective evaluation of software evolvability using code smells: An empirical study
Mäntylä, M. V., & Lassenius, C. (2007) · Empirical Software Engineering · doi:10.1007/s10664-006-9002-8 · Cited by 171
“There also exists a branch of work that has used subjective evolvability by the developers to tune their metrics-based design flaw or code evolvability tools (Marinescu, 2004; Schwanke and Hanson, 1994).”
BackgroundSoftware Fault Prediction Using Quad Tree-Based K-Means Clustering Algorithm
Bishnu, P. S., & Bhattacherjee, V. (2012) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2011.163 · Cited by 164
“In order to determine acceptable metrics thresholds, there are three methods described as follows [11]: 1) Experience and Hints from literature: The threshold values are specified according to the empirical researchers, previously introduced in the literature.”
MethodAn empirical investigation into the nature of test smells
Tufano, M., Palomba, F., Bavota, G., Di Penta, M., Oliveto, R., De Lucia, A., & Poshyvanyk, D. (2016) · Proceedings of the 31st IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/2970276.2970340 · Cited by 160
“…the last decade, the research community spent a lot of effort to define the methods and tools for detecting design flaws in production code [19, 20, 23, 25, 26, 28, 31, 30, 33, 40], as well as empirical studies aimed at assessing their impact on main-tainability [2, 4, 11, 18, 22, 29, 34, 35, 38,…”
MethodMacia, I., Garcia, J., Popescu, D., Garcia, A., Medvidovic, N., & von Staa, A. (2012) · Proceedings of the 11th annual international conference on Aspect-oriented Software Development · doi:10.1145/2162049.2162069 · Cited by 111
Use, disuse, and misuse of automated refactorings
Vakilian, M., Chen, N., Negara, S., Rajkumar, B. A., Bailey, B. P., & Johnson, R. E. (2012) · 2012 34th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2012.6227190 · Cited by 106
Architecture-sensitive heuristics for prioritizing critical code anomalies
Guimarães, E., Garcia, A., & Cai, Y. (2015) · Proceedings of the 14th International Conference on Modularity · doi:10.1145/2724525.2724567 · Cited by 12
Are code smell detection tools suitable for detecting architecture degradation?
Lenhard, J., Hassan, M. M., Blom, M., & Herold, S. (2017) · Proceedings of the 11th European Conference on Software Architecture: Companion Proceedings · doi:10.1145/3129790.3129808 · Cited by 10
“These tools apply detection strategies [19], i.e., logical constraints that are composed of software metrics and permitted metric thresholds, which allow to detect if a code smell is present in a given context.”
Metadata
- Authors
- Marinescu, R.
- Venue
- 20th IEEE International Conference on Software Maintenance, 2004. Proceedings.
- Publisher
- IEEE
- Published
- 2004-12-23
- Pages
- 350-359
- ISSN
- 1063-6773 (ISSN-L)
- OpenAlex
- W2141069252
- Cited by
- 551
- References
- 22
- FWCI
- 8.85
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.