Re: Re: Inspiration for a Tombstone.
| From: | Robert Cummings | Date: | Sat, 28 Jun 2008 15:32:34 +0000 |
| Subject: | Re: Re: Inspiration for a Tombstone. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276095@lists.php.net to get a copy of this message | ||
On Sat, 2008-06-28 at 11:27 -0400, Andrew Ballard wrote:
> On Sat, Jun 28, 2008 at 9:44 AM, Colin Guthrie <gmane@colin.guthr.ie> 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.
*lol* Exactly... just doesn't sit right.
It's a good way to make sure you're not screwing up, but testing should
take care of that too.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP