This question is mainly talking about PHP, but I think it can be applicable to other languages as well. This is a question about code organization.
I have a friend who insists the best approach regarding organization to PHP programming is to have one file/class with all functions ever written inside it. He says it's simpler like this because he can just do a find on
function myFunctionName in order to find a function. I've tried breaking off from this approach and using multiple code files/classes to organize related code like I was taught in school. But I find it takes longer to find functions I'm looking for doing it like this. Is there a point when a project becomes big enough that multiple files becomes better than one file? When is this point?
What's a good argument for separating functions into different files?