php-general Digest 28 Jun 2008 19:41:37 -0000 Issue 5539

Topics (messages 276093 through 276098):

Re: Inspiration for a Tombstone.
        276093 by: Colin Guthrie
        276094 by: Andrew Ballard
        276095 by: Robert Cummings
        276096 by: Jim Lucas
        276097 by: Dotan Cohen
        276098 by: Robert Cummings

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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.


Additionally, using a little red to
highlight the assignment operator but not the comparison operator works
just as well. Make machines work for you, not the other way around.

Well whatever floats your boat. :)

Personally, editor configuration is all well and good, but if you work in a team and regularly edit other peoples' code (and as such they use other editors with other configurations) and some people are colour blind etc. so can't use red and other colours so easily, editor configuration will never replace habits like this which use the language itself to ensure better QA.

But each to their own!

Col


--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
On Sat, 2008-06-28 at 11:27 -0400, Andrew Ballard wrote:
> 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.

*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


--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Sat, 2008-06-28 at 11:27 -0400, Andrew Ballard wrote:
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.

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

But whoever said the flow of the English language was all that efficient? I actually prefer 'Yoda Speak'. Takes less to say more.
--- End Message ---
--- Begin Message ---
2008/6/28 Jim Lucas <[EMAIL PROTECTED]>:
> But whoever said the flow of the English language was all that efficient?  I
> actually prefer 'Yoda Speak'.  Takes less to say more.
>

The flow of the English language was all that efficient, who ever
said? 'Yoda speak' I actually prefer. Say more, takes less.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--- End Message ---
--- Begin Message ---
On Sat, 2008-06-28 at 21:19 +0300, Dotan Cohen wrote:
> 2008/6/28 Jim Lucas <[EMAIL PROTECTED]>:
> > But whoever said the flow of the English language was all that efficient?  I
> > actually prefer 'Yoda Speak'.  Takes less to say more.
> >
> 
> The flow of the English language was all that efficient, who ever
> said? 'Yoda speak' I actually prefer. Say more, takes less.

Don't forget the associated function of understanding... Yoda speak
requires more thinking and you still understand less.

Yoda speak is merely a veiled attempt to seem wise. Wisdom real requires
such tricks not.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---

Reply via email to