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

A single 100 line file will be scored to be twice as buggy as the exact same code split into two 50 line files.

I suspect that isn't the case. Subjectively, longer files are harder to understand and in languages like Java (one file = one class, ignore inner classes etc) is likely to represent more complicated and tightly coupled code.

If the same file keeps appearing, then split it in half and see what happens...



The two 50-line files will probably have better internal cohesion, making them easier to test and review than one 100-line file.




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

Search: