Re: Assignment (Was Re: [PHP] More microptimisation (Was Re: Variable as an index)

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

 



At 11:06 AM +1100 12/24/08, Clancy wrote:
On Tue, 23 Dec 2008 10:25:13 -0500, tedd.sperling@xxxxxxxxx (tedd) wrote:
 >Two things:

1. One statement, one line.
2. The code between the two examples is different; produces different
results; and thus is rather pointless in making a definitive
 >comparison.


Spoken like a true demagogue -- nitpicking about trivial points of style, but displaying
total ignorance of elementary rules of programming.

Clancy:

A tag strong, but you're right. Apology offered.

Certainly, my comment about "One statement, one line" is a personal choice. But it is founded on 40+ years of writing code. It's something that makes debugging simpler for me and perhaps for others.

My second point was just plain wrong. In one of the previous post on this thread, someone used the value of $i as an index and it produced different results. So I jumped to the conclusion it was different, but it's not. I should of examined it more closely. Sorry.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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