Re: PHP Website Architecture
| From: | David T-G | Date: | Fri, 07 May 2004 16:12:39 +0000 |
| Subject: | Re: PHP Website Architecture | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185639@lists.php.net to get a copy of this message | ||
Ryan, et al --
..and then Ryan A said...
%
%
% On 5/7/2004 5:47:47 PM, Jay Blanchard (jay.blanchard@niicommunications.com)
% wrote:
[snip]
Did you realize that you quoted Jay's quote of Paul's original note but
then snipped off Jay's comment? :-)
..
% If you are thinking only of performance this wont matter at all, but
% sometimes for the sake of simplicity and easier management of code it is
% good to split files for different tasks.
Agreed.
% Nearly all programs can be written in *one* very large .php file but just
% thinking of going back in to make changes 3 months down the road would be a
% nightmare.
Now, now... If you structure your code effectively it's no harder to
edit one large file than it is to edit a bunch of smaller files. I agree
that sometimes breaking up is a good thing, but I haven't the slightest
problem working in the single main (and large) script for our gallery
engine, amongst other projects, and as an added bonus I don't have to
remember in which file to search, months later, when I'm tracking a bug
(er, "reconsidered feature", since there are no bugs in my code! ;-)
%
% HTH.
%
% Cheers,
% -Ryan
HTH & HAND
:-D
--
David T-G
davidtg@justpickone.org
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!