I generally don't get along with files who have more than 500 lines...
I've alwasy been a strong supporter of modularization...mostly cause when files have more than 500 lines I tend to loose myself in my own code
Back in the day when I programmed in VBasic 3.0 I remember a neat feature where you could display ONLY the function you were interested in working on and the rest of you code wasn't shown...
Then I switched to C++ and Visual Studio where it's editor can and WILL display tens of thousands of lines of code
Now I use UltraEdit for PHP and it's no better...
p.s-I hate source folding...so I turn that feature off...
So, I ask, how many lines do you find confusing...or atleast your personal MAX....what techniques do you use for keeping all that code organized in your head? Do you keep your functions small? Do you use verbose documentation???
Cheers