Evaluating the Dependency Between Cyclomatic Complexity and Response For Class
<|reference_start|>Evaluating the Dependency Between Cyclomatic Complexity and Response For Class: In object-oriented programming, it is reasonable to hypothesize that smaller classes with fewer methods are less complex. Should this hypothesis hold true, it would be advisable for programmers to design classes with fewer methods, as complexity significantly contributes to poor maintainability. To test this assumption, we analyzed 862,517 Java classes from 1,000 open GitHub repositories. Our findings indicate a strong Pearson correlation of 0.79 between the cumulative McCabe's Cyclomatic Complexity (CC) of all class methods and the number of methods, a metric known as Response for Class (RFC).<|reference_end|>
@article{stavtsev2024evaluating,
    title={Evaluating the Dependency Between Cyclomatic Complexity and Response For
  Class},
    author={Maxim Stavtsev, Yegor Bugayenko},
    journal={arXiv preprint arXiv:2410.06416},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.06416},
    primaryClass={cs.SE}
}