in reply to One Big Script v. Several Small Scripts
As far as compile-time goes, frankly I don't care whether it's 10 milliseconds or two seconds. It's not one of those 10,000 hits-per-day sites. What I do care about is maintainability, and the capacity to modify function by building out rather than up. This could have been achieved by having one module whose only job was to interface to the database via exported data objects and methods. That way each query could have been handled by a different, much shorter script, and the data retrieved and contained in nice, tidy object variables instead of being splattered across a score or two of global scalars. Plus -- and most importantly of all -- I could follow the logic of each query handler without having to scroll back and forth through several thousand lines of code.
Now I know. And I'm sorely tempted to do a major rewrite, except -- doggone it all -- the blasted thing works!
|
|---|