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

I usually do the following:

- if function A and B are always used together, than they are one file.

- if linecount gets to big, split A and B into separate files

- if function C is shared between modules than it belongs in it's own file

So far it worked out great.



So long as #3 takes #1 into account.




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

Search: