How do Java methods grow?
Daniela Steidl, Florian Deissenboeck · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · 2015
Overly long methods hamper the maintainability of software - they are hard to understand and to change, but also difficult to test, reuse, and profile. While technically there are many opportunities to refactor long methods, little is known about their origin and their evolution. It is unclear how much effort should be spent to refactor them and when this effort is spent best. To obtain a maintenance strategy, we need a better understanding of how software systems and their methods evolve. This paper presents an empirical case study on method growth in Java with nine open source and one industry system. We show that most methods do not increase their length significantly; in fact, about half of them remain unchanged after the initial commit. Instead, software systems grow by adding new methods rather than by modifying existing methods.
Cited by 7 works. doi:10.1109/scam.2015.7335411
Authors
References
- Does code decay? Assessing the evidence from change management data
- Mining metrics to predict component failures
- Evolution in open source software: a case study
- Clean Code: A Handbook of Agile Software Craftsmanship
- Change Distilling:Tree Differencing for Fine-Grained Source Code Change Extraction
- Clean Code : A Handbook of Agile Software Craftsmanship
- Automated Detection of Refactorings in Evolving Components
- A Practical Model for Measuring Maintainability
- 6th International Conference on the Quality of Information and Communications Technology-TOC
- Reconstruction of successful software evolution using clone detection