RE: [PHP] Cleaning up my messy code
| From: | Robert Cummings | Date: | Mon, 29 Sep 2003 21:20:46 +0000 |
| Subject: | RE: [PHP] Cleaning up my messy code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164307@lists.php.net to get a copy of this message | ||
On Mon, 2003-09-29 at 17:12, Vail, Warren wrote:
>
> IMHO, the first test of any code, is does it do what is should accurately,
> and speedily (in that order), after that what you have left is a
> programmer's best effort at producing something that others can read.
> Adding cpu cycles so that it can be more easily read by someone who
> doesn't know the language too well, is not always in the best interest
> of the software user.
Some code can't run in your lifetime if it were to be accurate. That's
why heuristics exist :) Also if it takes you 10 years to develop speedy
code that runs at 5% of the speed of your competitor's, you may just
have missed the boat. So speed is a trade off with development time. The
best code will try to maximize speed while minimizing development time.
Cheers,
Rob/
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'