TY - GEN
T1 - Measuring the impact of friends on the internal attributes of software systems
AU - English, Michael
AU - Buckley, Jim
AU - Cahill, Tony
AU - Lynch, Kristian
PY - 2005
Y1 - 2005
N2 - Differing views have been expressed on the appropriateness of the friend construct in the design and implementation of object-oriented software in C++. However, little empirical analysis of its usage in the development of systems has taken place. This paper describes an empirical study of the top 100 most downloaded open-source software systems from sourceforge.net, to assess the design implications of the use of the friend construct. On a larger cohort of systems our results provide further evidence that classes declared as friends are coupling hotspots. Our findings also indicate that class size does not seem to have the confounding effect on this relationship that has been suggested in previous research. In addition, there seems to be no indication that friendship is used as an alternative to inheritance although a small number of systems seem to use friendship as an alternative to multiple inheritance and vice versa.
AB - Differing views have been expressed on the appropriateness of the friend construct in the design and implementation of object-oriented software in C++. However, little empirical analysis of its usage in the development of systems has taken place. This paper describes an empirical study of the top 100 most downloaded open-source software systems from sourceforge.net, to assess the design implications of the use of the friend construct. On a larger cohort of systems our results provide further evidence that classes declared as friends are coupling hotspots. Our findings also indicate that class size does not seem to have the confounding effect on this relationship that has been suggested in previous research. In addition, there seems to be no indication that friendship is used as an alternative to inheritance although a small number of systems seem to use friendship as an alternative to multiple inheritance and vice versa.
UR - http://www.scopus.com/inward/record.url?scp=33749397323&partnerID=8YFLogxK
U2 - 10.1109/SCAM.2005.16
DO - 10.1109/SCAM.2005.16
M3 - Conference contribution
AN - SCOPUS:33749397323
SN - 0769522920
SN - 9780769522920
T3 - Proceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005
SP - 151
EP - 160
BT - Proceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005
T2 - Proceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005
Y2 - 30 September 2005 through 1 October 2005
ER -