The Case for Non-Cohesive Packages

N. Anquetil, M. U. Bhatti, Stéphane Ducasse, André C. Hora, Jannik Laval
{"title":"The Case for Non-Cohesive Packages","authors":"N. Anquetil, M. U. Bhatti, Stéphane Ducasse, André C. Hora, Jannik Laval","doi":"10.1145/0000000.0000000","DOIUrl":null,"url":null,"abstract":"While the lack of cohesiveness of modules in procedural languages is a good way to identify modules with potential quality problems, we doubt that it is an adequate measure for packages in object-oriented systems. Indeed, mapping procedural metrics to object-oriented systems should take into account the building principles of object-oriented programming: inheritance and late binding. Inheritance offers the possibility to create packages by just extending classes with the necessary increment of behavior. Late binding coupled to the \" Hollywood Principle \" are a key to build frameworks and let the users branch their extensions in the framework. Therefore, a package extending a framework does not have to be cohesive, since it inherits the framework logic, which is encapsulated in framework packages. In such a case, the correct modularization of an extender application may imply low cohesion for some of the packages. In this paper we confirm these conjectures on various real systems (JHotdraw, Eclipse, JEdit, JFace) using or extending OO frameworks. We carry out a dependency analysis of packages to measure their relation with their framework. The results show that framework dependencies form a considerable portion of the overall package dependencies. This means that non-cohesive packages should not be considered systematically as packages of low quality.","PeriodicalId":198204,"journal":{"name":"arXiv: Information Retrieval","volume":"9 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"32","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv: Information Retrieval","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/0000000.0000000","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 32

Abstract

While the lack of cohesiveness of modules in procedural languages is a good way to identify modules with potential quality problems, we doubt that it is an adequate measure for packages in object-oriented systems. Indeed, mapping procedural metrics to object-oriented systems should take into account the building principles of object-oriented programming: inheritance and late binding. Inheritance offers the possibility to create packages by just extending classes with the necessary increment of behavior. Late binding coupled to the " Hollywood Principle " are a key to build frameworks and let the users branch their extensions in the framework. Therefore, a package extending a framework does not have to be cohesive, since it inherits the framework logic, which is encapsulated in framework packages. In such a case, the correct modularization of an extender application may imply low cohesion for some of the packages. In this paper we confirm these conjectures on various real systems (JHotdraw, Eclipse, JEdit, JFace) using or extending OO frameworks. We carry out a dependency analysis of packages to measure their relation with their framework. The results show that framework dependencies form a considerable portion of the overall package dependencies. This means that non-cohesive packages should not be considered systematically as packages of low quality.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
非内聚包的案例
虽然过程语言中模块缺乏内聚性是识别具有潜在质量问题的模块的好方法,但我们怀疑它对面向对象系统中的包是否足够。实际上,将过程度量映射到面向对象系统应该考虑到面向对象编程的构建原则:继承和后期绑定。继承提供了一种创建包的可能性,只需用必要的行为增量来扩展类。与“好莱坞原则”相结合的后期绑定是构建框架并允许用户在框架中分支其扩展的关键。因此,扩展框架的包不必是内聚的,因为它继承了封装在框架包中的框架逻辑。在这种情况下,扩展程序应用程序的正确模块化可能意味着某些包的内聚性较低。在本文中,我们在使用或扩展OO框架的各种实际系统(JHotdraw, Eclipse, JEdit, JFace)上证实了这些猜想。我们对包进行依赖性分析,以度量它们与框架的关系。结果表明,框架依赖构成了整个包依赖的相当大的一部分。这意味着不内聚的包不应该被系统地视为低质量的包。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
AWS CORD-19 Search: A Neural Search Engine for COVID-19 Literature The Case for Non-Cohesive Packages AMIEDoT: An annotation model for document tracking and recommendation service A Fast Algorithm to Build New Users Similarity List in Neighbourhood-Based Collaborative Filtering
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1