What's the optimum size for a class file?

2019-07-02 19:41发布

问题:

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?

回答1:

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



回答2:

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.



回答3:

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.



标签: class size