What's the optimum size for a class file?

余生颓废 提交于 2019-12-23 16:05: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.



来源:https://stackoverflow.com/questions/840092/whats-the-optimum-size-for-a-class-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!