University of Limerick Institutional Repository

A friend in need is a friend indeed

DSpace Repository

Show simple item record English, Michael Buckley, Jim Cahill, Tony 2011-07-22T12:18:22Z 2011-07-22T12:18:22Z 2005
dc.description peer-reviewed en_US
dc.description.abstract Previous research has highlighted the extensive use of the C++ friend construct in both library-based and application-based systems. However, existing software metrics do not concentrate on measuring friendship accurately, a surprising omission given the debate friendship has caused in the Object-Oriented community. In this paper, a number of software metrics, that measure the extent to which friend class relationships are actually used in systems, are de ned. These metrics are based on the interactions for which the friend construct is necessary, as well as the direction of this association between classes. Our results, in applying these metrics to the top 100 downloaded systems from, indicate that up to 66% of friend class relationships in systems are redundant. Elsewhere, friend function declarations would have been more appropriate in many cases. In addition, it has been shown that friendship-based coupling contributes significantly to the high coupling of friend classes for only 25% of the systems studied. en_US
dc.language.iso eng en_US
dc.publisher IEEE Computer Society en_US
dc.relation.ispartofseries 2005 International Symposium on Empirical Software Engineering;pp. 469-478
dc.rights ©2005 IEEE. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works must be obtained from the IEEE. en_US
dc.subject software-metrics en_US
dc.subject friend functions en_US
dc.title A friend in need is a friend indeed en_US
dc.type Conference item en_US
dc.type.supercollection all_ul_research en_US
dc.type.supercollection ul_published_reviewed en_US
dc.type.restriction none en
dc.contributor.sponsor CSIS Department
dc.contributor.sponsor University of Limerick
dc.contributor.sponsor SFI

Files in this item

This item appears in the following Collection(s)

Show simple item record

Search ULIR


My Account