Applying coupling and cohesion concepts in object-oriented software: a controlled experiment

Gabriel Oliveira Moreira, J. A. M. Santos
{"title":"Applying coupling and cohesion concepts in object-oriented software: a controlled experiment","authors":"Gabriel Oliveira Moreira, J. A. M. Santos","doi":"10.1145/3439961.3439969","DOIUrl":null,"url":null,"abstract":"Context: Coupling and cohesion concepts support the object-oriented (OO) design activity. A better design implies less coupled and more cohesive classes. Thus, it is expected studies on OO design investigate issues impacting the good application of these concepts. However, most studies in the area have focused on high-level metaphors, such as code smells and design patterns; or software metrics. Objective: This study aims to build empirical evidence reinforcing that basic concepts deserve more attention towards better OO design. The study investigates the application of coupling and cohesion concepts during programming activity. Two topics are addressed: i) how developer characteristics (“previous knowledge on the concepts” and “developers experience”) impact on software design during programming activity; and ii) the differences in applying the concepts, independently. Method: A quasi-experiment with 17 participants. The participants were graduate and undergraduate students, but all have professional experience in software development. The software they programmed was compared with the experiment’s oracle in terms of the application of coupling and cohesion concepts. Result: One finding is previous knowledge on the concepts impacts on design quality, in some way; while developers experience doesn’t. Another finding is: application of cohesion is significantly easier than application of coupling. Conclusion: A conjecture based on these findings is training on basic OO principles (including formal education) might be more relevant than developer experience towards better software design. At last, the topic needs more investigation. We suggest this approach brings a complementary perspective of analysis to discuss the topic.","PeriodicalId":422507,"journal":{"name":"Proceedings of the XIX Brazilian Symposium on Software Quality","volume":"99 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the XIX Brazilian Symposium on Software Quality","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3439961.3439969","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Context: Coupling and cohesion concepts support the object-oriented (OO) design activity. A better design implies less coupled and more cohesive classes. Thus, it is expected studies on OO design investigate issues impacting the good application of these concepts. However, most studies in the area have focused on high-level metaphors, such as code smells and design patterns; or software metrics. Objective: This study aims to build empirical evidence reinforcing that basic concepts deserve more attention towards better OO design. The study investigates the application of coupling and cohesion concepts during programming activity. Two topics are addressed: i) how developer characteristics (“previous knowledge on the concepts” and “developers experience”) impact on software design during programming activity; and ii) the differences in applying the concepts, independently. Method: A quasi-experiment with 17 participants. The participants were graduate and undergraduate students, but all have professional experience in software development. The software they programmed was compared with the experiment’s oracle in terms of the application of coupling and cohesion concepts. Result: One finding is previous knowledge on the concepts impacts on design quality, in some way; while developers experience doesn’t. Another finding is: application of cohesion is significantly easier than application of coupling. Conclusion: A conjecture based on these findings is training on basic OO principles (including formal education) might be more relevant than developer experience towards better software design. At last, the topic needs more investigation. We suggest this approach brings a complementary perspective of analysis to discuss the topic.
耦合和内聚概念在面向对象软件中的应用:一个对照实验
上下文:耦合和内聚概念支持面向对象(OO)设计活动。更好的设计意味着更少耦合和更紧密的类。因此,对OO设计的研究应该调查影响这些概念良好应用的问题。然而,该领域的大多数研究都集中在高层次的隐喻上,比如代码气味和设计模式;或者软件指标。目的:本研究旨在建立经验证据,加强对基本概念的关注,以更好地进行面向对象设计。研究了耦合和内聚概念在编程活动中的应用。本文讨论了两个主题:i)在编程过程中,开发人员特征(“对概念的先前知识”和“开发人员经验”)如何影响软件设计;ii)独立应用概念的差异。方法:采用拟实验法,共17人。参与者是研究生和本科生,但都有软件开发的专业经验。在耦合和内聚概念的应用方面,将他们编写的软件与实验oracle进行了比较。结果:一个发现是先前对概念的了解在某种程度上影响了设计质量;而开发者的经验却不是这样。另一个发现是:内聚的应用要比耦合的应用容易得多。结论:基于这些发现的一个猜想是,关于基本OO原则的培训(包括正规教育)可能比开发人员的经验对更好的软件设计更有意义。最后,本课题还需要进一步的研究。我们认为这种方法带来了一个互补的分析角度来讨论这个话题。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书