Published 2024 | Version v2

Replication package for the study "Broken Windows: Exploring the Applicability of a Controversial Theory on Code Quality"

  • 1. Athens University of Economics and Business
  • 2. University College London
  • 3. ROR icon Dalhousie University

Description

Is the quality of existing code correlated with the quality of subsequent changes? According to the (controversial) broken windows theory, which inspired this study, disorder sets descriptive norms and signals behavior that further increases it. From a large code corpus, we examine whether code history does indeed affect the evolution of code quality. We examine C code quality metrics and Java code smells in specific files, and see whether subsequent commits by developers continue on that path.  We check whether developers tailor the quality of their commits based on the quality of the file they commit to.  Our results show that history matters, that developers behave differently depending on some aspects of the code quality they encounter, and that programming style inconsistency is not necessarily related to structural qualities. These findings have implications for both software practice and research.

This replication package contains the data and source code used in the study.

Files

Files (262.8 MB)

Name Size
md5:9ce3247c493495b58b776445119e8814
262.8 MB Download

Additional details

Related works

Is supplement to
Conference paper: 10.1109/ICSME58944.2024.00044 (DOI)

Funding

European Commission
FASTEN - Fine-Grained Analysis of Software Ecosystems as Networks 825328
European Commission
SecOPERA - Secure OPen source softwarE and hardwaRe Adaptable framework 101070599