tags:

views:

156

answers:

4

I know that there is no single "ideal" size of a class file, but still...

Are there any data (like studies, not like opinion) on what is the optimum size for a class file?

+8  A: 

I'd say the optimum size would be enough code for the class to do its job.

Mark Biek
+2  A: 

Opinion: The smallest possible size that does the job, while maintaining readability but promoting brevity.

In academia there is some work on the subject to try and be more formal.

xan
+1  A: 

I wouldn't care about the size of the class file, but about the size of the source file.

Usually the class file size is roughly a function of the source file size, but that's no reason to observe the size of the class file.

Joachim Sauer