A Multi-Study Investigation into Dead Code
- 1 June 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 46 (1) , 71-99
Abstract
Dead code is a bad smell and it appears to be widespread in open-source and commercial software systems. Surprisingly, dead code has received very little empirical attention from the software engineering research community. In this paper, we present a multi-study investigation with an overarching goal to study, from the perspective of researchers and developers, when and why developers introduce dead code, howthey perceive and cope with it, and whether dead code is harmful. To this end, we conducted semi-structured interviews with software professionals and four experiments at the University of Basilicata and the College of William & Mary. The results suggest that it is worth studying dead code not only in the maintenance and evolution phases, where our results suggest that dead code is harmful, but also in the design and implementation phases. Our results motivate future work to develop techniques for detecting and removing dead code and suggest that developers should avoid this smell.Keywords
Funding Information
- NSF (CCF-1253837)
This publication has 34 references indexed in Scilit:
- On the impact of UML analysis models on source-code comprehensibility and modifiabilityACM Transactions on Software Engineering and Methodology, 2014
- Replications of software engineering experimentsEmpirical Software Engineering, 2013
- From objects to services: toward a stepwise migration approach for Java applicationsInternational Journal on Software Tools for Technology Transfer, 2009
- How Many Interviews Are Enough?Field Methods, 2006
- Using thematic analysis in psychologyQualitative Research in Psychology, 2006
- How effective developers investigate source code: an exploratory studyIEEE Transactions on Software Engineering, 2004
- Using Templates in the Thematic Analysis of Text2004
- Preliminary guidelines for empirical research in software engineeringIEEE Transactions on Software Engineering, 2002
- The Point of TriangulationJournal of Nursing Scholarship, 2001
- An analysis of variance test for normality (complete samples)Biometrika, 1965