The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.12 - December (2001 vol.27)
pp: 1134-1144
ABSTRACT
<p>Software design patterns package proven solutions to recurring design problems in a form that simplifies reuse. We are seeking empirical evidence whether using design patterns is beneficial. In particular, one may prefer using a design pattern even if the actual design problem is simpler than that solved by the pattern, i.e., if not all of the functionality offered by the pattern is actually required. Our experiment investigates software maintenance scenarios that employ various design patterns and compares designs with patterns to simpler alternatives. The subjects were professional software engineers. In most of our nine maintenance tasks, we found positive effects from using a design pattern: Either its inherent additional flexibility was achieved without requiring more maintenance time or maintenance time was reduced compared to the simpler alternative. In a few cases, we found negative effects: The alternative solution was less error-prone or required less maintenance time. Although most of these effects were expected, a few were surprising: A negative effect occurs although a certain application of the Observer pattern appears to be well justified and a positive effect occurs despite superfluous flexibility (and, hence, complexity) introduced by a certain application of the Decorator pattern. Overall, we conclude that, unless there is a clear reason to prefer the simpler solution, it is probably wise to choose the flexibility provided by the design pattern because unexpected new requirements often appear. We identify several questions for future empirical research.</p>
INDEX TERMS
Controlled experiment, design pattern, design alternatives, maintenance, change effort
CITATION
L. Prechelt, B. Unger, W.F. Tichy, P. Brössler, L.G. Votta, "A Controlled Experiment in Maintenance Comparing Design Patterns to Simpler Solutions", IEEE Transactions on Software Engineering, vol.27, no. 12, pp. 1134-1144, December 2001, doi:10.1109/32.988711
16 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool