计算机科学 > 软件工程
[提交于 2024年10月10日]
标题:Evaluating the Dependency Between Cyclomatic Complexity and Response For Class
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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).
提交历史
来自:Yegor Bugayenko[v1] 2024年10月10日 星期四 00:00:00 UTC