On Sat, Jun 28, 2008 at 9:44 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Robert Cummings wrote:
>>
>> I will never do it... it looks ugly,
>
> Only if you're not used to it. IMO this is how it should be taught in all
> the books and guides etc. If that was the case, the other way round would be
> ugly :)
>
>> especially when performing multiple
>> if comparisons on the variable.
>
> Perhaps, but it's still not as ugly as a hideous error gone undetected which
> accidentally deletes all your customers' data.
---snip---


I don't know about "ugly," but I agree it "feels" wrong. I feel like
I'm using Yoda-speak when reading code like that:

If 'yes' is you_can_read_this, 'Stop standing on me' I say.

or

If 0 is my_pulse then 'dead you are' should say you.

:-D

--Andrew

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

Reply via email to