I've worked on JS projects where we set a maximum line number on files. It worked well -- it was a gentle reminder that a module had grown and would benefit from splitting up.
(I think this would definitely work in other languages, but probably with a higher line threshold.)
miniblog.
Related Posts
What's the threshold for politely pasting text in IRC channels? I pasted two lines and my client sternly warned me and mentioned pastebins.
There's a threshold where it's just easier to write a patch than to file a bug. It's more likely to result in a fix, but it can be more labour intensive.
I don't know where the line is. It seems to depend on the community's interest in patches, and whether you have commit privs.
Fairbairn Threshold: the point where it's easier to rederive a fn than to track the definition: https://mail.haskell.org/pipermail/libraries/2012-February/017548.html (tooling specific?)