The use of Ockham's Razor in object-oriented modeling

Alexander Pollok, A. Klöckner
{"title":"The use of Ockham's Razor in object-oriented modeling","authors":"Alexander Pollok, A. Klöckner","doi":"10.1145/2904081.2904086","DOIUrl":null,"url":null,"abstract":"From the perspective of a practitioner, the development of perfect equation-based models is limited by language, hardware, and one's own mind. While the first two aspects are covered extensively in literature, only little attention has been given to the third one. We make a case for simple models, with a focus on two aspects: use of inheritance and creation of flexible models. Both can have adverse side-effects if used without restriction. To exemplify this discussion, two versions of a library as used in the aerospace industry are compared. The old version made heavy use of inheritance and tried to conduct everything with a minimal number of components. It was completely redesigned after maintenance efforts became too high. A psychological experiment was performed, where the effect of inheritance on the ability of participants to understand a model was analyzed. Results showed that each level of hierarchy significantly increases the time to understand a model by 26.65 s, when correcting for total model length. This supports our hypothesis that flat models are easier to understand than deeply nested models.","PeriodicalId":344062,"journal":{"name":"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2904081.2904086","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

From the perspective of a practitioner, the development of perfect equation-based models is limited by language, hardware, and one's own mind. While the first two aspects are covered extensively in literature, only little attention has been given to the third one. We make a case for simple models, with a focus on two aspects: use of inheritance and creation of flexible models. Both can have adverse side-effects if used without restriction. To exemplify this discussion, two versions of a library as used in the aerospace industry are compared. The old version made heavy use of inheritance and tried to conduct everything with a minimal number of components. It was completely redesigned after maintenance efforts became too high. A psychological experiment was performed, where the effect of inheritance on the ability of participants to understand a model was analyzed. Results showed that each level of hierarchy significantly increases the time to understand a model by 26.65 s, when correcting for total model length. This supports our hypothesis that flat models are easier to understand than deeply nested models.
奥卡姆剃刀在面向对象建模中的应用
从实践者的角度来看,完善的基于方程的模型的发展受到语言、硬件和个人思维的限制。虽然前两个方面在文献中被广泛覆盖,但第三个方面却很少受到关注。我们以简单模型为例,重点关注两个方面:继承的使用和灵活模型的创建。如果不加限制地使用,这两种药物都有副作用。为了举例说明这一讨论,比较了航空航天工业中使用的两个版本的库。旧版本大量使用继承,并试图用最少的组件执行所有操作。在维修工作量过大后,它被彻底重新设计。我们进行了一项心理实验,分析了遗传对参与者理解模型能力的影响。结果表明,在校正模型总长度的情况下,每一层次都显著增加了理解模型的时间26.65 s。这支持了我们的假设,即平面模型比深度嵌套模型更容易理解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信