When I write PHP I might do something like put each object in it’s own file, or, if I was better mannered I might even have folders for Models, Views and Controllers.
If you are writing lots of Javascript, what’s the best way to avoid having one massive file?
I presume the spine / backbone frameworks would force me to do it their way, but is there another approach.
Is it best to combine the files server side or client side?
Combine files server-side is probably the best way.
When it comes to file organization you might want to take a look at solutions like RequireJS which allow you to follow the CommonJS or AMD patterns or a ruby solution like Sprockets