note 52041 deleted from function.create-function by betz
| From: | betz@php.net | Date: | Tue, 20 Sep 2005 08:52:20 +0000 |
| Subject: | note 52041 deleted from function.create-function by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95456@lists.php.net to get a copy of this message | ||
Note Submitter: jsb17 at NOSPAMcornell dot edu
----
To clarify this comment below, "Basically, if create_function() is the answer, you arn't
asking the right question":
Using eval() and create_function() is like pushing the queen early. Chessmasters can do it because
they know what they're doing. Beginners and intermediates, however, are quick to attack
without recognizing the long term danger.
So too, programmers who have *actually completed a curriculum in computer science* and are aware of
their algorithmic options and computational complexities, can find incredible possibilities for
eval() and create_function() and should find no fear in calling those functions.
However, if you're a novice or intermediate, it may be wise to put aside your pride and seek
advice from a computer scientist on a simpler algorithm to your solve problem. You wouldn't
want a nurse to perform the work of a surgeon on you.