An empirical investigation on the reusability of design patterns and software packages

  • Authors:
  • Apostolos Ampatzoglou;Apostolos Kritikos;George Kakarontzas;Ioannis Stamelos

  • Affiliations:
  • Department of Informatics, Aristotle University, Aristotle University Campus, 54124 Thessaloniki, Greece;Department of Informatics, Aristotle University, Aristotle University Campus, 54124 Thessaloniki, Greece;Department of Informatics, Aristotle University, Aristotle University Campus, 54124 Thessaloniki, Greece;Department of Informatics, Aristotle University, Aristotle University Campus, 54124 Thessaloniki, Greece

  • Venue:
  • Journal of Systems and Software
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Nowadays open-source software communities are thriving. Successful open-source projects are competitive and the amount of source code that is freely available offers great reuse opportunities to software developers. Thus, it is expected that several requirements can be implemented based on open source software reuse. Additionally, design patterns, i.e. well-known solution to common design problems, are introduced as elements of reuse. This study attempts to empirically investigate the reusability of design patterns, classes and software packages. Thus, the results can help developers to identify the most beneficial starting points for white box reuse, which is quite popular among open source communities. In order to achieve this goal we conducted a case study on one hundred (100) open source projects. More specifically, we identified 27,461 classes that participate in design patterns and compared the reusability of each of these classes with the reusability of the pattern and the package that this class belongs to. In more than 40% of the cases investigated, design pattern based class selection, offers the most reusable starting point for white-box reuse. However there are several cases when package based selection might be preferable. The results suggest that each pattern has different level of reusability.