arrow
返回

The optimal class size for object-oriented software

delete2002-05-01
delete53
PRE
AI
K
Khaled El Emam
S
Saïda Benlarbi
N
Neeraj Goel
W
Walcélio L. Melo
H
Hakim Lounis
S. Rai 封面图
S. Rai (S. Rai)
DOI:10.1109/TSE.2002.1000452delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
A growing body of literature suggests that there is an optimal size for software components. This means that components that are too small or too big will have a higher defect content (i.e., there is a U-shaped curve relating defect content to size). The U-shaped curve has become known as the Goldilocks Conjecture. Recently, a cognitive theory has been proposed to explain this phenomenon and it has been expanded to characterize object-oriented software. This conjecture has wide implications for software engineering practice. It suggests 1) that designers should deliberately strive to design classes that are of the optimal size, 2) that program decomposition is harmful. and 3) that there exists a maximum (threshold) class size that should not be exceeded to ensure fewer faults in the software, The purpose of the current paper is to evaluate this conjecture for object-oriented systems. We first demonstrate that the claims of an optimal component/class size (1) above) and of smaller components/classes having a greater defect content (2) above) are due to a mathematical artifact in the analyses performed previously. We then empirically test the threshold effect claims of this conjecture (3) above). To our knowledge, the empirical test of size threshold effects for object-oriented systems has not been performed thus far, We performed an initial study with an industrial C++ system and repeated it twice on another C++ system and on a commercial Java application. Our results provide unambiguous evidence that there is no threshold effect of class size. We obtained the same result for three systems using four different size measures. These findings suggest that there is a simple continuous relationship between class size and faults, and that, optimal class size, smaller classes are better and threshold effects conjectures have no sound theoretical nor empirical basis.
Keyword:
object-oriented metrics
software quality
quality models
quality prediction
software size
optimal size
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
3.0K
被引数:
1.3W

机构

暂无机构信息
引用论文

引用论文

An evaluation of code metrics for object-oriented programs
err1996-01-01
err9
PREAI
errHarrison, R; Samaraweera, LG; Dobie, MR; Lewis, PH
err分享
err收藏
User evaluations offer promise for pod-intravaginal ring as a drug delivery platform: A mixed methods study of acceptability and use experiences
err2018-05-14
err0
errOAAI
errKate M. Guthrie; Rochelle K. Rosen; Sara E. Vargas; Melissa L. Getz; Lauren Dawson; Melissa Guillen; Jaime J. Ramirez; Marc M. Baum; Kathleen L. Vincent
err分享
err收藏
err分享
err收藏
学者 查看更多内容