A Controlled experiment on inheritance depth as a cost factor for maintenance

Prechelt L, Unger B, Philippsen M, Tichy WF (2003)


Publication Language: English

Publication Type: Journal article, Original article

Publication year: 2003

Journal

Publisher: Elsevier

Book Volume: 65

Pages Range: 115-126

Journal Issue: 2

URI: http://pswt.informatik.uni-erlangen.de/publication/download/jss.pdf

DOI: 10.1016/S0164-1212(02)00053-5

Abstract

In two controlled experiments we compare the performance on code maintenance tasks for three equivalent programs with 0, 3, and 5 levels of inheritance. For the given tasks, which focus on understanding effort more than change effort, programs with less inheritance were faster to maintain. Daly et al. previously reported similar experiments on the same question with quite different results. They found that the 5-level program tended to be harder to maintain than the 0-level program, while the 3-level program was significantly easier to maintain than the 0-level program. We describe the design and setup of our experiment, the differences to the previous ones, and the results obtained. Ours and the previous experiments are different in several ways: We used a longer and more complex program, made an inheritance diagram available to the subjects, and added a second kind of maintenance task. When taken together, the previous results plus ours suggest that there is no such thing as usefulness or harmfulness of a certain inheritance depth as such. Code maintenance effort is hardly correlated with inheritance depth, but rather depends on other factors (partly related to inheritance depth). Using statistical modeling, we identify the number of relevant methods to be one such factor. We use it to build an explanation model of average code maintenance effort that is much more powerful than a model relying on inheritance depth. © 2002 Elsevier Science Inc. All rights reserved.

Authors with CRIS profile

How to cite

APA:

Prechelt, L., Unger, B., Philippsen, M., & Tichy, W.F. (2003). A Controlled experiment on inheritance depth as a cost factor for maintenance. Journal of Systems and Software, 65(2), 115-126. https://dx.doi.org/10.1016/S0164-1212(02)00053-5

MLA:

Prechelt, Lutz, et al. "A Controlled experiment on inheritance depth as a cost factor for maintenance." Journal of Systems and Software 65.2 (2003): 115-126.

BibTeX: Download