Re: [PHP] Re: if/elseif/else v. switch

2004-06-08 Thread Aidan Lister
Hi Chris,

 oh right and that makes everything better. you're a fantastic person!

I don't see how criticising a silly question makes me a bad person in the
first place.

 you should be able to handle a little public humiliation/chastisement
 since you so easily dish it out.

You missed the point.

Anyway, stop flogging a dead horse. Stupid questions have stupid answers,
unfortunatly mine was one of the stupid answers - in hind site, I agree it
was an inapropriate thing to say.

Kind Regards,
Aidan

- Original Message - 
From: Chris W. Parker [EMAIL PROTECTED]
To: Aidan Lister [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 2:25 AM
Subject: RE: [PHP] Re: if/elseif/else v. switch


Aidan Lister mailto:[EMAIL PROTECTED]
on Saturday, June 05, 2004 6:19 AM said:

 You'll note I did not criticise the poster, merely his seemingly
 stupid question.

oh right and that makes everything better. you're a fantastic person!

 I suggest you practice what you preach. If you have a comment on my
 reply to a users post, feel free to contact me personally -
 [EMAIL PROTECTED]

you should be able to handle a little public humiliation/chastisement
since you so easily dish it out.



c.

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



RE: [PHP] Re: if/elseif/else v. switch

2004-06-07 Thread Chris W. Parker
Aidan Lister mailto:[EMAIL PROTECTED]
on Saturday, June 05, 2004 6:19 AM said:

 You'll note I did not criticise the poster, merely his seemingly
 stupid question.

oh right and that makes everything better. you're a fantastic person!

 I suggest you practice what you preach. If you have a comment on my
 reply to a users post, feel free to contact me personally -
 [EMAIL PROTECTED]

you should be able to handle a little public humiliation/chastisement
since you so easily dish it out.



c.

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



Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Rachel Rodriguez

--- Aidan Lister [EMAIL PROTECTED] wrote:
 This appears to be a really, really stupid question.
 

Is this level of condemnation of a poster necessary? 

Whether you think Dennis's question was stupid or not,
there is no need for such harsh criticism in front of
everyone on this list.

There are many ways you could have worded your
response to ask the poster to rephrase his question. 
Your approach was not appropriate.

=
~Rachel




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Aidan Lister
Hi Rachel,

You'll note I did not criticise the poster, merely his seemingly stupid
question.

I suggest you practice what you preach. If you have a comment on my reply to
a users post, feel free to contact me personally - [EMAIL PROTECTED]

There is equally no need to criticise my crticism - on the list, in front of
everyone, as you so boldly put it.


Rachel Rodriguez [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 --- Aidan Lister [EMAIL PROTECTED] wrote:
  This appears to be a really, really stupid question.
 

 Is this level of condemnation of a poster necessary?

 Whether you think Dennis's question was stupid or not,
 there is no need for such harsh criticism in front of
 everyone on this list.

 There are many ways you could have worded your
 response to ask the poster to rephrase his question.
 Your approach was not appropriate.

 =
 ~Rachel




 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/

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



Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Lester Caine
Now Now children ...
It is always worth remembering that for some posters English is not 
their first language and therefore while a question may sound silly, 
there may be perfectly good reasons for it being asked.

Always answer the bits that fit between the lines, that is usually the 
real question.

Returning to the question :)
If a case statement can be created with a switch, then that should be 
faster than a string of if then's, but I have seen compilers converting 
a set of switch values to a string of if then statement like checks. So 
internally there may well be no difference what so ever! But where a 
number of conditions need checking, then the result may not be practical 
with a simple switch anyway.

So the question is possibly - does a case statement switch get processed 
as a set of goto statements, or a list of equality checks? It makes no 
difference to the client, but would have an effect on processing times 
and perhaps the order of segments could be adjusted to account for the 
most likely state first.

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Curt Zirzow
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
 This appears to be a really, really stupid question.
 

Didn't your teachers ever tell you that there is no such thing as
a stupid question?


Curt
--
What... is the Airspeed Velocity of an Unladen Swallow?

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



RE: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers
Good.  Initially, before I sent this message, I was concerned that it was a
really, really, really stupid question.  But I apparently hit the mark
perfectly with two reallys.  Since you seem to enjoy answering them, I
shall try to come up with a slew of what I hope will be really, really
stupid questions, just for you.  Should I send them to your e-mail
directly, or share them with the whole list?  After all, maybe not everyone
enjoys really, really stupid questions as much as you.

Just  a quick note to clarify: I did ask about the difference between the
two conditionals, and a difference in speed is a good example of a
difference.

In seriousness, if you think it's an unworthy question, why take the time
to respond?  Deleting the message will take far less energy.  Also, I can't
see the harm in asking a stupid question (or question that involves one or
more reallys), so long as I get an answer.  After all, it isn't as though
I ask people to write scripts for me or ask questions just to avoid the
hassle of looking in the manual.


 [Original Message]
 From: Aidan Lister [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: 06/05/2004 2:04:03 AM
 Subject: [PHP] Re: if/elseif/else v. switch

 This appears to be a really, really stupid question.

 If they are indentical in operation, then ofcourse there will be no
 noticeable difference to the user.


 One may note that a switch statement is faster, because the condition is
 only evaluated once. However you did not ask about the speed difference.


 Dennis Seavers [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Is there any noticeable difference (on the part of the client) between
 identical conditionals, one written as a switch, the other written as an
if,
 elseif ... else conditional?  I realize that one programmer coming in
behind
 another might prefer the gentler layout of a switch; but would there be
any
 perceivable difference, client-side, between the options?

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

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



Re: [PHP] Re: if/elseif/else v. switch

2004-06-05 Thread Dennis Seavers



 [Original Message]
 From: Aidan Lister [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: 06/05/2004 6:19:24 AM
 Subject: Re: [PHP] Re: if/elseif/else v. switch

 Hi Rachel,

 You'll note I did not criticise the poster, merely his seemingly stupid
 question.

P.S.  Isn't it possible that you offended the question by criticizing it?

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