首页> 外文会议>International Symposium on Empirical Software Engineering >A friend in need is a friend indeed software metrics and friend functions
【24h】

A friend in need is a friend indeed software metrics and friend functions

机译:有需要的朋友是一个朋友确实软件指标和朋友功能

获取原文

摘要

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 defined. 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 sourceforge.net, 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.
机译:以前的研究突出显示基于库和基于应用程序的系统的C ++朋友构造的广泛使用。然而,现有的软件指标不专注于准确测量友谊,鉴于辩论友谊在面向对象的社区造成的令人惊讶的遗漏。在本文中,定义了许多软件指标,其测量系统中实际使用的朋友类关系的程度。这些度量标准基于所需的朋友构建的交互,以及类之间的此关联的方向。我们的结果是,在将这些指标应用于来自SourceForge.net的前100名下载的系统中,表明系统中高达66%的朋友类关系是冗余的。在其他地方,在许多情况下,朋友函数声明将更合适。此外,已经表明,基于友谊的耦合显着贡献了朋友类的高耦合,仅为所研究的25%的系统。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号