Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

These findings might really be about module-size, not function-size.

For Java/C#, objects and packages are module units that were not available in the languages in the studies, that would naturally share the role of modularity performed by functions.

My opinion: what belongs in a module, and its size, is determined by the problem and its domain. The crucial criteria is to make things clearer, and uncluttered by irrelevant things. A module is a way to combine some things, and separate other things. There can be several legitimate ways to divide up a task into modules, though it will make more sense if you choose just one organizing principle and stick to it. This makes your choice of modularity predictable.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: