Title :
Concern-based cohesion: Unveiling a hidden dimension of cohesion measurement
Author :
Silva, Bruno ; Anna, Claudio Sant ; Chavez, Christina ; Garcia, Alessandro
Author_Institution :
Comput. Dept., Fed. Univ. of Bahia, Salvador, Brazil
Abstract :
Cohesion has been avidly recognized as a key property of software modularity. Ideally, a software module is considered to be cohesive if it represents an abstraction of a single concern of the software. Modules with several concerns may be harder to understand because developers must mentally separate the source code related to each concern. Also, modules implementing several concerns are more likely to undergo changes as much as distinct development tasks may target its different concerns. The most well-known cohesion metrics are defined in terms of the syntactical structure of a module, and as a consequence fail to capture the amount of concerns realized by the module. In this context, we investigated the potential of a new metric, called Lack of Concern-based Cohesion. This metric explicitly counts the number of concerns realized by each module. We compared this metric with other five structural cohesion metrics by applying them over six open source software systems. We studied how those metrics are associated with module changes by mining over 16,000 repository revisions. Our results pointed out that the concern-based metric captured a cohesion dimension that is not reflected by structural metrics, and, as a consequence, adds to the association of cohesion and change-proneness.
Keywords :
public domain software; software metrics; software quality; cohesion dimension; cohesion measurement; cohesion metrics; concern based cohesion; distinct development; hidden dimension; open source software systems; software modularity; software module; software quality; source code; structural metrics; syntactical structure; Correlation; History; Java; Libraries; Measurement; Principal component analysis; Software; change-proneness; cohesion; concern-driven metrics; maintainability; software metrics;
Conference_Titel :
Program Comprehension (ICPC), 2012 IEEE 20th International Conference on
Conference_Location :
Passau
Print_ISBN :
978-1-4673-1213-4
Electronic_ISBN :
1092-8138
DOI :
10.1109/ICPC.2012.6240476