|
Posted by JDS on 11/30/24 11:28
On Tue, 04 Oct 2005 04:04:11 -0700, marco.avidano wrote:
> I'm asking: for the PHP parser, it's better to create one large file
> with all the code inside or a lot of small files?
> Can a large file slow down the execution of the script?
Don't worry about it. Speed differences will be negligible.
From a programming practice point of view, though, multiple include()ed
files often make a large project easier to build and maintain. All of
your functions in one file, an HMTL header and footer in others,
business logic in still others...
Programming practices Haiku
Keep style consistent
Use comments, annotation
Remember to reuse code
later...
--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
[Back to original message]
|