Object-oriented cohesion subjectivity amongst experienced and novice developers

Author:

Counsell Steve1,Swift Stephen1,Tucker Allan1,Mendes Emilia2

Affiliation:

1. Brunel University, Uxbridge, Middlesex, UK

2. University of Auckland, New Zealand

Abstract

The concept of software cohesion in both the procedural and object-oriented paradigm is well known and documented. What is not so well known or documented is the perception of what empirically constitutes a cohesive 'unit' by software engineers. In this paper, we describe an empirical investigation using object-oriented (OO) classes as a basis. Twenty-four subjects (drawn from IT experienced and novice groups) were asked to rate ten classes sampled from two industrial systems in terms of their overall cohesiveness; a class environment was used to carry out the study. Three hypotheses were investigated as part of the study, relating to class size, the role of comment lines and the differences between the two groups in terms of how they rated cohesion. Several key results were observed. Firstly, class size (when expressed in terms of number of methods) only influenced the perception of cohesion by novice subjects. Secondly, well-commented classes were rated more highly amongst IT experienced than novice subjects. Thirdly, results suggest strongly that cohesion comprises a combination of various class factors including low coupling, small numbers of attributes and well-commented methods, rather than any single, individual class feature per se . Finally, if the research supports the view that cohesion is a subjective concept reflecting a cognitive combination of class features then cohesion is also a surrogate for class comprehension.

Publisher

Association for Computing Machinery (ACM)

Reference27 articles.

1. V. R Basili G. Caldiera and H. D Rombach The Goal Question Metric Approach. Encyclopedia of Software Engineering Volume 1 pages 528--532 1996. V. R Basili G. Caldiera and H. D Rombach The Goal Question Metric Approach. Encyclopedia of Software Engineering Volume 1 pages 528--532 1996.

2. Measuring functional cohesion

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Applying coupling and cohesion concepts in object-oriented software: a controlled experiment;19th Brazilian Symposium on Software Quality;2020-12

2. A Model to Detect Readability Improvements in Incremental Changes;Proceedings of the 28th International Conference on Program Comprehension;2020-07-13

3. An empirical study on how developers reason about module cohesion;Proceedings of the 13th international conference on Modularity;2014-04-22

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3