Skip to main content
QUICK REVIEW

[Paper Review] A Pedagogical Evaluation and Discussion about the Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

Ezekiel Uzor Okike|arXiv (Cornell University)|Apr 19, 2010
Software Engineering ResearchComputer Science13 references4 citations
TL;DR

This study evaluates the Lack of Cohesion in Methods (LCOM) metric using field data from three industrial systems with 34, 383, and 1,055 classes respectively. Using descriptive statistics and Chidamber and Kemerer's metric suite, the research finds that LCOM effectively identifies cohesive and poorly designed classes, with cohesion rates of 78.8%, 54%, and 30% respectively, supporting its validity in assessing class cohesion.

ABSTRACT

Chidamber and Kemerer first defined a cohesion measure for object-oriented software - the Lack of Cohesion in Methods (LCOM) metric. This paper presents a pedagogic evaluation and discussion about the LCOM metric using field data from three industrial systems. System 1 has 34 classes, System 2 has 383 classes and System 3 has 1055 classes. The main objectives of the study were to determine if the LCOM metric was appropriate in the measurement of class cohesion and the determination of properly and improperly designed classes in the studied systems. Chidamber and Kemerer's suite of metric was used as metric tool. Descriptive statistics was used to analyze results. The result of the study showed that in System 1, 78.8% (26 classes) were cohesive; System 2 54% (207 classes) were cohesive; System 3 30% (317 classes) were cohesive. We suggest that the LCOM metric measures class cohesiveness and was appropriate in the determination of properly and improperly designed classes in the studied system.

Motivation & Objective

  • To assess the appropriateness of the LCOM metric in measuring class cohesion in real-world software systems.
  • To determine whether LCOM can reliably distinguish between well-designed and poorly designed classes in industrial codebases.
  • To evaluate the metric's performance across systems of varying sizes and complexity.
  • To provide a pedagogical discussion on LCOM's utility based on empirical field data.

Proposed method

  • Field experiment using production code from three industrial systems with 34, 383, and 1,055 classes respectively.
  • Application of Chidamber and Kemerer's LCOM metric suite to compute cohesion scores for each class.
  • Use of descriptive statistics to analyze the distribution and magnitude of LCOM values across classes.
  • Classification of classes as cohesive or not based on LCOM thresholds and statistical trends.
  • Comparative analysis of cohesion percentages across systems to assess metric consistency.

Experimental results

Research questions

  • RQ1Is the LCOM metric effective in measuring class cohesion in real industrial software systems?
  • RQ2Can LCOM reliably identify properly and improperly designed classes in object-oriented systems?
  • RQ3How does the level of cohesion vary across systems of different sizes and complexities?
  • RQ4Does the LCOM metric maintain consistent interpretability across diverse industrial codebases?

Key findings

  • In System 1 (34 classes), 78.8% (26 classes) were classified as cohesive based on LCOM values.
  • In System 2 (383 classes), 54% (207 classes) were found to be cohesive.
  • In System 3 (1,055 classes), only 30% (317 classes) were identified as cohesive.
  • The LCOM metric demonstrated consistent applicability in distinguishing cohesive from non-cohesive classes across all three systems.
  • The decreasing cohesion rates with increasing system size suggest potential scalability challenges in design quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.