Assessing the Changeability of two Object-Oriented Design Alternatives—a Controlled Experiment

  • Authors:
  • Erik Arisholm;Dag I. K. Sjø/berg;Magne Jø/rgensen

  • Affiliations:
  • Simula Research Laboratory, Oslo Research Park, Gaustadeallè/en 21, N-0349 Osla, Norway/ erik@simula.no;Simula Research Laboratory, Oslo Research Park, Gaustadeallè/en 21, N-0349 Osla, Norway/ dag@simula.no;Simula Research Laboratory, Oslo Research Park, Gaustadeallè/en 21, N-0349 Osla, Norway/ magne@simula.no

  • Venue:
  • Empirical Software Engineering
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

An important motivation for the object-oriented paradigm is to improve the changeability of the software, thereby reducing lifetime development costs. This paper describes the results of controlled experiments assessing the changeability of a given responsibility-driven (RD) design versus an alternative control-oriented “mainframe” (MF) design. According to Coad and Yourdon's OO design quality principles, the RD design represents a “good” design. The MF design represents a “bad” design. To investigate which of the designs have better changeability, we conducted two controlled experiments—a pilot experiment and a main experiment. In both experiments, the subjects were divided in two groups in which the individuals designed, coded and tested several identical changes on one of the two design alternatives.The results clearly indicate that the “good” RD design requires significantly more change effort for the given set of changes than the alternative “bad” MF design. This difference in change effort is primarily due to the difference in effort required to understand how to solve the change tasks. Consequently, reducing class-level coupling and increasing class cohesion may actually increase the cognitive complexity of a design. With regards to correctness and learning curve, we found no significant differences between the two␣designs. However, we found that structural attributes change less for the RD design than for the MF design. Thus, the RD design may be less prone to structural deterioration. A challenging issue raised in this paper is therefore the tradeoff between change effort and structural stability.