Empirical Study of Phased Model of Software Change

Leon A. Wilson, Yoann Senin, Y. N. Wang, Václav Rajlich · DOI

Abstract

Software change is the basic task of software evolution and maintenance. Phased Model for Software Change (PMSC) is a process model for software changes that localize in the code. It consists of several phases that cover both program comprehension and code modifications. This paper presents an empirical study of an enactment of PMSC, enhanced by the use of tool JRipples. The subjects are graduate students with varying degree of programming experience. The empirical findings demonstrate that programmers with knowledge of PMSC and supported by JRipples perform perfective software changes in unfamiliar software in significantly less time (about half time) than unaided programmers. Substantial time improvements were witnessed in both code comprehension and implementation efforts.

Introduction

Software maintenance and evolution are often described as the "dark matter" of software engineering, consuming the vast majority of project budgets and development effort. Despite its prevalence, much of the existing research focuses on isolated subtasks like bug localization or refactoring, rather than the holistic process a developer follows from receiving a change request to committing the code. Without a structured process, developers—particularly those working on unfamiliar systems—often fall into "random walk" patterns, spending excessive time exploring irrelevant code or making changes with unforeseen ripple effects.

The Phased Model for Software Change (PMSC)

The Phased Model for Software Change (PMSC) addresses this lack of structure by dividing the software change process into two primary stages: Code Comprehension and Code Implementation.

The Phased Model for Software Change (PMSC) workflow.

As shown in the figure above, the model breaks down the process into specific phases:

  1. Code Comprehension: Includes Initiation, Concept Location (identifying the starting point of a change), and Impact Analysis (determining the scope of the change).
  2. Code Implementation: Includes Prefactoring (preparing the code), Actualization (the core modification), Postfactoring (cleanup), and Conclusion.

Methodology and Tool Support

To validate the effectiveness of PMSC, a within-subject empirical study was conducted with 17 graduate students. The study utilized two well-known open-source Java applications: jEdit (~100 kLOC) and JabRef (~78 kLOC). Participants performed change requests using standard Eclipse tools in a control stage, followed by a treatment stage using the PMSC process and the JRipples tool.

JRipples acts as a navigational aid, automating the bookkeeping of which classes have been inspected and which are potentially impacted by a change.

JRipples interface for tracking impacted classes.

By marking classes as "Impacted" or "Next," the tool helps developers maintain focus during the Impact Analysis phase, preventing the "random walk" behavior typical of unaided maintenance.

Key Results and Analysis

The quantitative results of the study were substantial. Following the PMSC/JRipples approach reduced the average time to complete a change from 654 minutes to 275 minutes—a 58% improvement.

  • Comprehension as the Bottleneck: The study confirmed that program comprehension is the most time-consuming part of software change, accounting for roughly 50% of total effort. PMSC reduced comprehension time by 66%.
  • Predictability: While "lucky insights" occasionally helped unaided developers, the structured process made performance significantly more uniform and predictable across the group.
  • Implementation Efficiency: Implementation time saw a 47% reduction, though this was less statistically significant than the comprehension gains, likely due to individual coding style variances.

Conclusion

The empirical findings suggest that a structured process model like PMSC, when paired with appropriate tool support like JRipples, can dramatically improve the efficiency of software maintenance tasks. By providing a "GPS" for navigating unfamiliar codebases, these methods allow developers to spend less time wandering and more time implementing high-quality changes.

Summary updated

BibTeX
@misc{wilson2019empirical,
  author = {Leon A. Wilson and Yoann Senin and Y. N. Wang and Václav Rajlich},
  title = {{Empirical Study of Phased Model of Software Change}},
  year = {2019},
  eprint = {1904.05842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.05842},
}
Figure