Measuring the impact of friends on the internal attributes of software systems

Michael English, Jim Buckley, Tony Cahill, Kristian Lynch

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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.

Original languageEnglish
Title of host publicationProceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005
Pages151-160
Number of pages10
DOIs
Publication statusPublished - 2005
EventProceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005 - Budapest, Hungary
Duration: 30 Sep 20051 Oct 2005

Publication series

NameProceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005

Conference

ConferenceProceedings - Fifth IEEE International Workshop on Source Code Analysis and Manipulation, SCAM 2005
Country/TerritoryHungary
CityBudapest
Period30/09/051/10/05

Fingerprint

Dive into the research topics of 'Measuring the impact of friends on the internal attributes of software systems'. Together they form a unique fingerprint.

Cite this