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篇论文的施引文献,订阅后可以查看论文全部施引文献