Re: Re: Early return (was: Inspiration for a Tombstone.)
| From: | Dotan Cohen | Date: | Sun, 29 Jun 2008 14:47:26 +0000 |
| Subject: | Re: Re: Early return (was: Inspiration for a Tombstone.) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276111@lists.php.net to get a copy of this message | ||
2008/6/29 Colin Guthrie <gmane@colin.guthr.ie>:
> Dotan Cohen wrote:
>>
>> Why not? I do this often, but I am not a professional programmer. I
>> find this to be very useful.
>
> Found another opinion/article about this. I remember reading this one a
> while back:
>
>
> http://whatimean.wordpress.com/2007/02/08/multiple-return-points-are-bad/
>
> Like I said before, I don't personally subscribe to this point of view, but
> it makes for interesting reading :D
>
Thanks. He makes a good point. For my own one-man-show homepage, my
multile-exit strategy is fine. But I do see the value in regard to
code debugging and following the code flow.
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?