咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Evaluating the Dependency Betw... 收藏
arXiv

Evaluating the Dependency Between Cyclomatic Complexity and Response For Class

作     者:Stavtsev, Maxim Bugayenko, Yegor 

作者机构:Higher School of Economics Moscow Russia Huawei Moscow Russia 

出 版 物:《arXiv》 (arXiv)

年 卷 期:2024年

核心收录:

主  题:Object oriented programming 

摘      要: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). © 2024, CC BY.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分