2008/7/2 Daniel Brown <[EMAIL PROTECTED]>:
>> Fatal error: Call to undefined function shawn() in /home/shawn/life.php on
>> line 1
>
>I like it. ;-P
>
I think that a 500 internal service error would be more appropriate at
that stage...
Dotan Cohen
http://what-is-what.com
http://gibberish.co
On Mon, Jun 30, 2008 at 1:31 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>
> Fatal error: Call to undefined function shawn() in /home/shawn/life.php on
> line 1
I like it. ;-P
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated
tedd wrote:
Hi gang:
For a break in our normal serious thinking, I suggested tombstone wit of:
"Always on the edge of greatness"
Dan offered:
or or
What would you like on your Tombstone? (<-- that's actually a
trademarked saying)
Cheers,
tedd
Fatal error: Call to undefined function
Dotan Cohen wrote:
As far as the programming practice that Colin was advocating, it is
not a bad habit. And as far as the computer is concerned, the
efficiency is a wash since the number of internal steps probably
doesn't change much. However, it doesn't always work. (I know - no one
claimed it d
2008/6/28 Andrew Ballard <[EMAIL PROTECTED]>:
> Say anything about efficiency never did I. :-) I was merely commenting
> on a personal preference based largely on my perspective as a native
> speaker of (US) English. Now - if I WERE to address efficiency, I
> don't find "Yoda speak" to be any more
On Sat, Jun 28, 2008 at 1:33 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> 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 nev
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 efficie
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
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 b
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 bo
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
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.
P
On Fri, 2008-06-27 at 09:52 -0500, Boyd, Todd M. wrote:
> > -Original Message-
> > From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 27, 2008 8:50 AM
> > To: tedd; php-general@lists.php.net
> > Subject: RE: [PHP] Re: Inspiration for a Tomb
At 9:52 AM -0500 6/27/08, Boyd, Todd M. wrote:
I think you guys are missing something: he wrote it with single equals
signs on purpose. He was demonstrating how the one with the constant to
the right of the assignment operator is a valid statement... and that
putting the constant first will aid y
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2008 8:50 AM
> To: tedd; php-general@lists.php.net
> Subject: RE: [PHP] Re: Inspiration for a Tombstone.
>
> [snip]
> And being dyslexic, I knew the 'Dan S' sh
On Fri, Jun 27, 2008 at 6:01 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> As I very humorously hinted at in a earlier mail on this thread, it is a
> very, very good idea to get into the habit of putting constants *first* in
> if/while/etc statements.
>
> if ("Dan S" = $user_name)
>
> PHP/C/C++ et
[snip]
And being dyslexic, I knew the 'Dan S' should have come first, but
didn't immediately recognize it as I was rushing to point out a
double equal-sign boo-boo made by Col.
[/snip]
Had Col used the method we're speaking of here the error would have been
thrown and he would have found the cul
At 8:30 AM -0500 6/27/08, Jay Blanchard wrote:
[snip]
Really?
I do it this way:
if ($user_name == "Dan S")
That not only looks right at first glance, but it actually works. :-)
[/snip]
This works better though;
if("Dan S" == $user_name) ... if you drop one of the comparison
operators in your
[snip]
Really?
I do it this way:
if ($user_name == "Dan S")
That not only looks right at first glance, but it actually works. :-)
[/snip]
This works better though;
if("Dan S" == $user_name) ... if you drop one of the comparison
operators in your haste to type then an error gets thrown and you
At 11:01 AM +0100 6/27/08, Colin Guthrie wrote:
if ($user_name = "Dan S")
Works silently and looks right at first glance.
I forced myself to write things that way round a good number of
years ago and it has served me well and caught a few potential
mishaps.
Col.
Really?
I do it this way:
2008/6/27 Colin Guthrie <[EMAIL PROTECTED]>:
> As I very humorously hinted at in a earlier mail on this thread, it is a
> very, very good idea to get into the habit of putting constants *first* in
> if/while/etc statements.
>
> if ("Dan S" = $user_name)
>
> PHP/C/C++ etc. Bombs with a syntax error.
Dan Shirah wrote:
if ($user_name == "Dan S") {
echo "Quit while you're ahead";
}
exit;
As I very humorously hinted at in a earlier mail on this thread, it is a
very, very good idea to get into the habit of putting constants *first*
in if/while/etc statements.
if ("Dan S" = $user_name)
PH
Dan Shirah wrote:
I would put:
"He put his constants first in if() statements until the end of his days".
Or
"He always preferred syntax errors to annoying logical bugs.".
:p
Col.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
23 matches
Mail list logo