Title :
An Empirical Study of Class Sizes for Large Java Systems
Author :
Zhang, Hongyu ; Tan, Hee Beng Kuan
Author_Institution :
Tsinghua Univ., Beijing
Abstract :
We perform an empirical study of class sizes (in terms of Lines of Code) on a number of large Java software systems, and discover an interesting pattern - that many classes have only small sizes whereas a few classes have large size. We call this phenomenon the small class phenomenon. Further analysis shows that the class sizes follow the lognormal distribution. Having understood the distribution of class sizes, we then derive a general size estimation model, which reveals the relationship between the size of a large Java system and the number of classes the system has. In this paper, we also show that the adoption of object- orientation is a possible cause of the small class phenomenon. We believe our study reveals the regularity that emerges from large-scale object-oriented software construction, and hope our research can contribute to a deep understanding of computer programming.
Keywords :
Java; log normal distribution; object-oriented programming; Java software systems; class sizes; computer programming; lognormal distribution; object-oriented software; size estimation model; Java; Lab-on-a-chip; Large-scale systems; Object oriented modeling; Programming; Size measurement; Software engineering; Software measurement; Software performance; Software systems;
Conference_Titel :
Software Engineering Conference, 2007. APSEC 2007. 14th Asia-Pacific
Conference_Location :
Aichi
Print_ISBN :
0-7695-3057-5
DOI :
10.1109/ASPEC.2007.64