Towards an order-aware object comparison

Bruno Sofiato, F. Siqueira, Ricardo Luis de Azevedo da Rocha
{"title":"Towards an order-aware object comparison","authors":"Bruno Sofiato, F. Siqueira, Ricardo Luis de Azevedo da Rocha","doi":"10.1145/3427081.3427090","DOIUrl":null,"url":null,"abstract":"As several studies show, code that compares objects is a known source of bugs in object-oriented languages. One of the causes is that multiple methods handle comparison. Another cause is more insidious and has its roots in how these languages control method invocation. Both the literature and the industry have proposals to deal with the problem. They either enforce hard constraints or do not handle all situations. Moreover, none of them deal with the ordering aspect of comparison. We propose a declarative approach to object comparison that handles ordering, and is language agnostic. We created a prototype in Java and evaluated its impacts on the software quality of applications in the DaCapo benchmark suite. The benefits were measured based on the ISO/IEC 25010 product quality model. Results suggest that the overall quality of the software improved, despite the deterioration of performance.","PeriodicalId":350427,"journal":{"name":"Proceedings of the 24th Brazilian Symposium on Context-Oriented Programming and Advanced Modularity","volume":"84 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 24th Brazilian Symposium on Context-Oriented Programming and Advanced Modularity","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3427081.3427090","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

As several studies show, code that compares objects is a known source of bugs in object-oriented languages. One of the causes is that multiple methods handle comparison. Another cause is more insidious and has its roots in how these languages control method invocation. Both the literature and the industry have proposals to deal with the problem. They either enforce hard constraints or do not handle all situations. Moreover, none of them deal with the ordering aspect of comparison. We propose a declarative approach to object comparison that handles ordering, and is language agnostic. We created a prototype in Java and evaluated its impacts on the software quality of applications in the DaCapo benchmark suite. The benefits were measured based on the ISO/IEC 25010 product quality model. Results suggest that the overall quality of the software improved, despite the deterioration of performance.
实现顺序感知的对象比较
一些研究表明,比较对象的代码是面向对象语言中已知的bug来源。原因之一是多个方法处理比较。另一个原因更加隐蔽,其根源在于这些语言控制方法调用的方式。无论是文献还是业界都提出了解决这一问题的建议。它们要么强制执行硬约束,要么不处理所有情况。此外,它们都没有处理比较的排序方面。我们提出了一种声明性的方法来处理排序的对象比较,并且是语言不可知的。我们用Java创建了一个原型,并在DaCapo基准测试套件中评估了它对应用程序软件质量的影响。效益是根据ISO/IEC 25010产品质量模型来衡量的。结果表明,尽管性能下降,但软件的整体质量得到了提高。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信