RE: Using

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux