RE: [PHP] Using
| From: | Jay Blanchard | Date: | Tue, 08 Feb 2005 15:39:30 +0000 |
| Subject: | RE: [PHP] Using | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208258@lists.php.net to get a copy of this message | ||
[snip]
>Is it small enough to be justified?
I don't know, I just always thought of it as "clean" to write an
application inside of a single file itself. While I'm still fairly new
to procedural programming, this may not be the proper way to do things.
[/snip]
A. It's not a dumb topic, just very broad.
2. Again, using a single file is OK if the size does not get out of
hand. Otherwise it becomes a management issue.
III. 'Proper', 'correct' and anything such as this is not applicable
really in PHP because there are so many ways to solve a problem (read
the archives and you'll see) such as your use of a giant nested IF to do
the same thing a SWITCH. If I ask you to add 1 to any number you might
do (provided we know that $a is numeric)...
$a = $a + 1;
I might do ....
$a++;
Is one better?