note 50175 deleted from language.variables by nlopess
| From: | nlopess@php.net | Date: | Sun, 20 Feb 2005 20:34:13 +0000 |
| Subject: | note 50175 deleted from language.variables by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85291@lists.php.net to get a copy of this message | ||
Note Submitter: spamfree at midgard dot no-ip dot org
Reason: useless
----
I don't mean to flame, but I have become convinced that PHP is one of those languages that
promotes bad programming practice. Or is it that most website designers never learned good practice?
Concatenating two string to form a variable name? Indirect namespace lookups like this should not be
needed. Most languages do not allow you do do this because whenever this might be a solution there
is _always_ a better one.
Please people, keep your code maintainable and do not do this! Only as a last resort or a quick and
temporary fix should you resort to such things. It's always alright to experiment, but in
reality this is not useful and will make you shoot yourself (and others) in the foot.