Broken Windows: Exploring the Applicability of a Controversial Theory on Code Quality
Diomidis Spinellis, Panos Louridas, Maria Kechagia, Tushar Sharma

TL;DR
This study investigates whether code quality and developer behavior are influenced by the history of code changes, providing empirical evidence that past quality impacts future development and highlighting implications for practice and research.
Contribution
It empirically tests the broken windows theory in software engineering, showing that code history influences future quality and developer behavior.
Findings
Code history affects subsequent code quality.
Developer behavior varies based on code quality.
Programming style inconsistency is not always linked to structural quality.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHate Speech and Cyberbullying Detection · Software Engineering Research · Social Media and Politics
