opinions: one program or many smaller programs?
Posted: Mon Apr 19, 2010 5:33 pm
Hello-
I have a question- I almost always code my php as one self contained program, but I noticed some books recommend making a separate php program for nearly every function.
Aside from modularity, what would be the advantage to making many small subprograms rather than 1 self contained program - seems like a maintenance nightmare to me..
Also I suppose one advantage might be that only the sections of the program that need to be running are loaded, slightly improving the speed of the code.
*edit - also passing things back and forth between sub programs seems like a good way to invite bugs..
I have a question- I almost always code my php as one self contained program, but I noticed some books recommend making a separate php program for nearly every function.
Aside from modularity, what would be the advantage to making many small subprograms rather than 1 self contained program - seems like a maintenance nightmare to me..
Also I suppose one advantage might be that only the sections of the program that need to be running are loaded, slightly improving the speed of the code.
*edit - also passing things back and forth between sub programs seems like a good way to invite bugs..