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

被引:18
作者
Ampatzoglou, Apostolos [1 ]
Kritikos, Apostolos [1 ]
Kakarontzas, George [1 ]
Stamelos, Ioannis [1 ]
机构
[1] Aristotle Univ Thessaloniki, Dept Informat, Thessaloniki 54124, Greece
关键词
Design patterns; Design; Quality; Reusability; Empirical approach; COHESION METRICS; QUALITY; PREDICTION; MODELS;
D O I
10.1016/j.jss.2011.06.047
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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. (C) 2011 Elsevier Inc. All rights reserved.
引用
收藏
页码:2265 / 2283
页数:19
相关论文
共 56 条
[31]   The effects of design pattern application on metric scores [J].
Huston, B .
JOURNAL OF SYSTEMS AND SOFTWARE, 2001, 58 (03) :261-269
[32]  
Jansen S., 2008, SOFTWARE IEEE COMPUT, V25, P2
[33]  
Khomh F, 2008, CSMR 2008: 12TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING, P274
[34]   CASE-STUDIES FOR METHOD AND TOOL EVALUATION [J].
KITCHENHAM, B ;
PICKARD, L ;
PFLEEGER, SL .
IEEE SOFTWARE, 1995, 12 (04) :52-62
[35]  
Kontio J., 2006, P 28 INT C SOFTW ENG, P201
[36]   Facilitating software extension with design patterns and Aspect-Oriented Programming [J].
Kouskouras, Konstantinos G. ;
Chatzigeorgiou, Alexander ;
Stephanides, George .
JOURNAL OF SYSTEMS AND SOFTWARE, 2008, 81 (10) :1725-1737
[37]  
Lau KK, 2005, EUROMICRO-SEAA 2005: 31ST EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS, PROCEEDINGS, P88
[38]  
Li J., 2009, SOFTWARE IEEE COMPUT, V26, P807
[39]   Using the conceptual cohesion of classes for fault prediction in Object-Oriented systems [J].
Marcus, Andrian ;
Poshyvanyk, Denys ;
Ferenc, Rudolf .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2008, 34 (02) :287-300
[40]  
MCCONNELL S, 1996, RAPID DEV TAMING WIL