TL;DR
This paper investigates why and how software developers intentionally fix their own "technical debt" (TD), a common issue in software development. Through a large-scale survey, they found that developers often consciously address their own TD, driven by a sense of responsibility and a careful consideration of costs and benefits, rather than superficial reasons.
What Problem Does This Paper Address?
Software development often involves accumulating "technical debt" (TD) – shortcuts or suboptimal solutions that make future maintenance and evolution harder. While previous research has shown that a significant portion of TD is fixed by the same developers who introduced it (self-fixed TD), this evidence primarily comes from analyzing source code. This leaves a crucial question unanswered: do developers intentionally fix their own TD, and what motivates them to do so? This paper aims to bridge this gap by directly asking practitioners about their intentions and rationales for self-fixing TD, and how factors like experience and role influence these decisions.
Methods
The researchers conducted an online survey targeting developers working with Java and Python in open-source communities. The survey was designed in three steps:
- Demographic Information: Collecting data on roles, experience, project involvement, and contributions.
- General TD Questions: Assessing familiarity with TD and general frequencies of introducing and repaying it.
- Detailed TD Questions: Delving into specific types of TD, asking about noticing and self-fixing them.
The data analysis involved descriptive statistics, Likert scale analysis, and statistical tests (Wilcoxon Rank Sum, Cliff's Delta, Scott-Knott Effect Size Difference, Fisher's exact tests) to compare groups and assess significance. For open-ended questions about reasons for introducing and self-fixing TD, an open-coding approach was used to categorize responses.
Datasets
The study used data collected from an online survey administered to 181 participants from 17 well-known Java and Python open-source software communities. The participants were selected based on their involvement in projects with a substantial number of commits and contributors. No new benchmark datasets were introduced; the focus was on collecting practitioner perceptions.
Key Insights and Ideas
- Intentionality is Key: The study strongly suggests that developers intentionally address their own technical debt, moving beyond mere source code observations.
- Responsibility Drives Action: A "sense of responsibility" emerged as a primary motivator for self-fixing TD, highlighting the importance of developer ownership.
- Cost-Benefit Analysis: Decisions to fix TD are not impulsive; they involve a thoughtful weighing of costs and benefits, indicating a strategic approach to debt management.
- Human Factors Matter: A developer's level of involvement (experience, contribution) significantly influences their attitude towards self-fixing TD, with more involved developers showing a stronger tendency to address their own debt.
- Language Differences Exist: While both Java and Python developers address TD, there are nuances. Java developers, for instance, seem more certain about self-fixing Test Debt and Defect Debt compared to Python developers.
Key Results
- High Familiarity: A vast majority (92%) of participants were familiar with the concept of technical debt.
- Frequent Self-Fixing: Over half of the participants indicated they self-fix TD "always," "on a regular basis," or "sometimes" (when essential).
- Code Debt Priority: Code Debt was identified as the primary concern for practitioners when it comes to self-fixing.
- Non-Technical Reasons Dominate: Reasons related to "planning and management" and "people" were the most frequently cited for both introducing and self-fixing TD.
- Impact of Involvement: Participants with higher project experience and more contributions showed a significantly more positive attitude towards self-fixing TD. For example, 98% of participants with high contribution levels had a positive attitude towards self-fixing TD.
- Role Influence: Project managers and support roles (PM group) showed a slightly more proactive stance towards self-fixing TD than developers (Dev group).
Limitations and Future Work
- Generalizability: While the study included popular open-source projects in Java and Python, the findings might not directly apply to all development contexts (e.g., proprietary software, different programming languages).
- Self-Reported Data: The study relies on self-reported data, which can be subject to recall bias or social desirability bias.
- Statistical Transformations: The use of log-transformations in statistical tests might yield different results with other transformations.
Future Work: The authors suggest investigating how reasons for TD introduction and self-fixing can be identified from software artifacts (code, documentation, issue trackers). They also plan to develop processes and tools to better integrate TD self-fixing into decision-making. Additionally, exploring how to incentivize developers to fix their own TD and foster collaboration around TD management are promising avenues.
Summary updated