Automatically assessing code understandability: How far are we?
The DOI matches its Crossref record; 41 of the 41 references it cites were found in a registry or an index.
Abstract
Program understanding plays a pivotal role in software maintenance and evolution: a deep understanding of code is the stepping stone for most software-related activities, such as bug fixing or testing. Being able to measure the understandability of a piece of code might help in estimating the effort required for a maintenance activity, in comparing the quality of alternative implementations, or even in predicting bugs. Unfortunately, there are no existing metrics specifically designed to assess the understandability of a given code snippet. In this paper, we perform a first step in this direction, by studying the extent to which several types of metrics computed on code, documentation, and developers correlate with code understandability. To perform such an investigation we ran a study with 46 participants who were asked to understand eight code snippets each. We collected a total of 324 evaluations aiming at assessing the perceived understandability, the actual level of understanding, and the time needed to understand a code snippet. Our results demonstrate that none of the (existing and new) metrics we considered is able to capture code understandability, not even the ones assumed to assess quality attributes strongly related with it, such as code readability and complexity.
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.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“The complexity of code is a critical factor influencing code readability, maintainability, and overall quality [56], [24], [57].”
From No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPT (2024) · cites this paper as [57]
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
Statistical Power Analysis for the Behavioral Sciences
Muller, K. (1989) · Technometrics · doi:10.1080/00401706.1989.10488618 · Cited by 99,167
Statistical Power Analysis for the Behavioral Sciences (2nd ed.).
Lachenbruch, P. A., & Cohen, J. (1989) · Journal of the American Statistical Association · doi:10.2307/2290095 · Cited by 37,395
David, F. N., & Tukey, J. W. (1977) · Biometrics · doi:10.2307/2529486 · Cited by 12,708
A NEW MEASURE OF RANK CORRELATION
KENDALL, M. G. (1938) · Biometrika · doi:10.1093/biomet/30.1-2.81 · Cited by 7,269
McCabe, T. J. (1976) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1976.233837 · Cited by 6,059
Tukey, J. W. (1977) · International Linear Collider · Cited by 2,155
Kleinberg, J. M., & Eva Tardos, D. (2005) · Cited by 1,400
Osborn, J. F., & Tukey, J. W. (1978) · Journal of the Royal Statistical Society. Series A (General) · doi:10.2307/2344492 · Cited by 1,190
A hierarchical model for object-oriented design quality assessment
Bansiya, J., & Davis, C. G. (2002) · IEEE Transactions on Software Engineering · doi:10.1109/32.979986 · Cited by 1,020
Evaluating software complexity measures
Weyuker, E. J. (1988) · IEEE Transactions on Software Engineering · doi:10.1109/32.6178 · Cited by 847
A hierarchical model for object-oriented design quality assessment
Gupta, N., Goyal, D., & Goyal, M. (2015) · International Journal of Advances in Engineering Sciences (RG Journals of Scientific Research) · Cited by 660
Learning a Metric for Code Readability
Buse, R. P. L., & Weimer, W. R. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2009.70 · Cited by 396 · cited 10×
“All readability metrics/models existing in the literature [10], [11], [12], [13], [14] would consider this snippet of code as highly readable, since it is very short, it has a low complexity, and uses meaningful and intuitive identifiers.”
BackgroundMethodInfluentialWhats in a Name? A Study of Identifiers
Lawrie, D., Morrell, C., Feild, H., & Binkley, D. (2006) · 14th IEEE International Conference on Program Comprehension (ICPC'06) · doi:10.1109/icpc.2006.51 · Cited by 248
(1979) · Harper & Row eBooks · Cited by 224
Theories, methods and tools in program comprehension: past, present and future
Storey, M.-A. (2005) · 13th International Workshop on Program Comprehension (IWPC'05) · doi:10.1109/wpc.2005.38 · Cited by 209
A simpler model of software readability
Posnett, D., Hindle, A., & Devanbu, P. (2011) · Proceedings of the 8th Working Conference on Mining Software Repositories · doi:10.1145/1985441.1985454 · Cited by 182 · cited 14×
“Even if in our study we considered snippets with a small variation of LOCs (maximum 40), it would have been reasonable to expect at least a small correlation with understandability.”
BackgroundMethodInfluentialI Know What You Did Last Summer - An Investigation of How Developers Spend Their Time
Minelli, R., Mocci, A., & Lanza, M. (2015) · 2015 IEEE 23rd International Conference on Program Comprehension · doi:10.1109/icpc.2015.12 · Cited by 181
How do professional developers comprehend software?
Roehm, T., Tiarks, R., Koschke, R., & Maalej, W. (2012) · 2012 34th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2012.6227188 · Cited by 178
Mining source code to automatically split identifiers for software analysis
Enslen, E., Hill, E., Pollock, L., & Vijay-Shanker, K. (2009) · 2009 6th IEEE International Working Conference on Mining Software Repositories · doi:10.1109/msr.2009.5069482 · Cited by 170
How do professional developers comprehend software
Roehm, T., Tiarks, R., Koschke, R., & Maalej, W. (2012) · doi:10.5555/2337223.2337254 · Cited by 167
An integrated measure of software maintainability
Aggarwal, K. K., Singh, Y., & Chhabra, J. K. (2003) · Annual Reliability and Maintainability Symposium (RAMS) · doi:10.1109/rams.2002.981648 · Cited by 156
Restructuring program identifier names
Caprile, & Tonella (2000) · Proceedings International Conference on Software Maintenance ICSM-94 · doi:10.1109/icsm.2000.883022 · Cited by 147
Modeling readability to improve unit tests
Daka, E., Campos, J., Fraser, G., Dorn, J., & Weimer, W. (2015) · Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2786805.2786838 · Cited by 143
Linguistic antipatterns: what they are and how developers perceive them
Arnaoudova, V., Penta, M. D., & Antoniol, G. (2015) · Empirical Software Engineering · doi:10.1007/s10664-014-9350-8 · Cited by 143
Improving code readability models with textual features
Scalabrino, S., Linares-Vasquez, M., Poshyvanyk, D., & Oliveto, R. (2016) · 2016 IEEE 24th International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2016.7503707 · Cited by 114 · cited 11×
“[14] proposed and evaluated a set of features based entirely on source code lexicon analysis (e.”
BackgroundMethodInfluentialSelf-citationEffective identifier names for comprehension and memory
Lawrie, D., Morrell, C. H., Feild, H. A., & Binkley, D. (2007) · Innovations in Systems and Software Engineering · doi:10.1007/s11334-007-0031-2 · Cited by 112
How do program understanding tools affect how programmers understand programs?
Storey, M.-A., Wong, K. K., & Müller, H. A. (2002) · Working Conference on Reverse Engineering (WCRE) · doi:10.1109/wcre.1997.624572 · Cited by 87
I know what you did last summer: an investigation of how developers spend their time
Minelli, R., Mocci, A., & Lanza, M. (2015) · doi:10.5555/2820282.2820289 · Cited by 70
Syntactic Identifier Conciseness and Consistency
Lawrie, D., Feild, H. A., & Binkley, D. (2006) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam.2006.31 · Cited by 63
Measuring the difficulty of code comprehension tasks using software metrics
Kasto, N., & Whalley, J. L. (2013) · Australasian Computing Education Conference · doi:10.5555/2667199.2667206 · Cited by 60
An exploratory study of the effect of aspect-oriented programming on maintainability
Bartsch, M., & Harrison, R. (2007) · Software Quality Journal · doi:10.1007/s11219-007-9022-7 · Cited by 50
How documentation evolves over time
Schreck, D., Dallmeier, V., & Zimmermann, T. (2007) · International Workshop on Principles of Software Evolution · doi:10.1145/1294948.1294952 · Cited by 47
Evolution of understandability in OSS projects
Capiluppi, A., Morisko, M., & Lago, P. (2004) · Euromicro Conference on Software Maintenance and Reengineering (CSMR) · doi:10.1109/csmr.2004.1281406 · Cited by 29
Evaluation of software understandability based on fuzzy matrix
Lin, J.-C., & Wu, K. (2008) · IEEE International Conference on Fuzzy Systems (FUZZ-IEEE) · doi:10.1109/fuzzy.2008.4630475 · Cited by 26
A Model for Measuring Software Understandability
Lin, J.-C., & Wu, K. (2006) · IEEE International Conference on Computer and Information Technology (CIT) · doi:10.1109/cit.2006.13 · Cited by 25
An approach to experimental evaluation of software understandability
Shima, K., Takemura, Y., & Matsumoto, K. (2003) · International Symposium on Empirical Software Engineering · doi:10.1109/isese.2002.1166925 · Cited by 18
Evaluating Human-Assessed Software Maintainability Metrics
Chen, C., Alfayez, R., Srisopha, K., Shi, L., & BOEHM, B. W. (2016) · Communications in computer and information science · doi:10.1007/978-981-10-3482-4_9 · Cited by 17
Measuring Understandability of Aspect-Oriented Code
Thongmak, M., & Muenchaisri, P. (2011) · Communications in computer and information science · doi:10.1007/978-3-642-22027-2_5 · Cited by 11
Comparative study of cognitive complexity measures
Misra, S., & Akman, İ. (2008) · International Symposium on Computer and Information Sciences · doi:10.1109/iscis.2008.4717939 · Cited by 10
Evaluation of Software Understandability Using Rough Sets
Srinivasulu, D., Adepu, S., & Mohapatra, D. P. (2013) · Advances in intelligent systems and computing · doi:10.1007/978-81-322-1665-0_95 · Cited by 8
A General Software Readability Model
Dorn, J. G. (n.d.)
Cited by
The Effectiveness of Supervised Machine Learning Algorithms in Predicting Software Refactoring
Aniche, M. F., Maziero, E. G., Durelli, R. S., & Durelli, V. H. S. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.3021736 · Cited by 155
Perfection Not Required? Human-AI Partnerships in Code Translation
Weisz, J. D., Muller, M., Houde, S., Richards, J., Ross, S. I., Martinez, F., Agarwal, M., & Talamadupula, K. (2021) · 26th International Conference on Intelligent User Interfaces · doi:10.1145/3397481.3450656 · Cited by 129
No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPT
Liu, Z., Tang, Y., Luo, X., Zhou, Y., & Zhang, L. F. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3392499 · Cited by 128
“The complexity of code is a critical factor influenc-ing code readability, maintainability, and overall quality [24], [56], [57].”
BackgroundAutomatically Assessing Code Understandability
Scalabrino, S., Bavota, G., Vendome, C., Linares‐Vásquez, M., Poshyvanyk, D., & Oliveto, R. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2901468 · Cited by 126
Self-citationPyMT5: multi-mode translation of natural language and Python code with transformers
Clement, C., Drain, D., Timcheck, J., Svyatkovskiy, A., & Sundaresan, N. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.728 · Cited by 120
Metadata
- Authors
- Scalabrino, S., Bavota, G., Vendome, C., Linares-Vasquez, M., Poshyvanyk, D., & Oliveto, R.
- Venue
- 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE)
- Publisher
- IEEE
- Published
- 2017-10
- Pages
- 417-427
- OpenAlex
- W2749460454
- Cited by
- 97
- References
- 41
- FWCI
- 5.93
- 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.