Re: EQ vs IS

2007-02-01 Thread Claude Schneegans
 >>Syntactically correct

Ooops sorry, I used the French word ;-)


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: EQ vs IS

2007-02-01 Thread Doug Brown
It would even be more Syntactically correct :-p

Doug B.



- Original Message - 
From: "Claude Schneegans" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, February 01, 2007 7:39 PM
Subject: Re: EQ vs IS


> >>I use "is" for numeric comparisons and "eq" for
> all others.
>
> How about IS EQ ?
> That would be more correct syntaxically ;-)
>
> -- 
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268398
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: EQ vs IS

2007-02-01 Thread Claude Schneegans
 >>I use "is" for numeric comparisons and "eq" for
all others.

How about IS EQ ?
That would be more correct syntaxically ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268395
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-31 Thread Bobby Hartsfield
LOL!

-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 11:14 AM
To: CF-Talk
Subject: RE: EQ vs IS

I try and use both, just to be sure


do something very important
 


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 11:12 AM
To: CF-Talk
Subject: Re: EQ vs IS

On 1/31/07, Rick Root <[EMAIL PROTECTED]> wrote:
> I must be backwards, because I use "is" for numeric comparisons and
"eq" for
> all others.

dude that's just wrong.

:)

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must
catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268283
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-31 Thread Bobby Hartsfield
Seriously... your code is going to implode doing that... ;-)

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 11:12 AM
To: CF-Talk
Subject: Re: EQ vs IS

On 1/31/07, Rick Root <[EMAIL PROTECTED]> wrote:
> I must be backwards, because I use "is" for numeric comparisons and "eq"
for
> all others.

dude that's just wrong.

:)

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268282
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-31 Thread Mike Kear
It's my recollection of about a decade ago when I was but a beginner at
ColdFusion, that i think Ben's CFWACK said exactly that.   I remember having
been a bit confused about when to use "eq" and when to use "is" when I read
in Ben's book that they were the same, and it was a "EUREKA!" moment for
me.

I recall reading it on the train on the way to work, and saying out loud
"AH!  Now THAT makes sense!"   and then feeling a bit stupid as people
looked at me and grinning.


Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


On 2/1/07, Damien McKenna <[EMAIL PROTECTED]> wrote:
>
> On 1/30/07 8:22 PM, Russ wrote:
> > I always use eq,
>
> I always use ==.  Oh, maybe that's why it doesn't work 
>
> I'm honestly surprised more books (inc the beginning training materials)
> don't explicitly state that "eq" and "is" are the same, just to help save
> people having a "doh" moment later on and feeling silly - it's on a few
> words?
>
> --
> Damien McKenna - Web Developer [EMAIL PROTECTED]
> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
> #include 
>
>
>
>
> --
>


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268278
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-31 Thread Russ
In SQL you have to use IS NULL, but CF has no concept of NULL, AFAIK.  

Russ



> -Original Message-
> From: Dave Francis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 10:04 AM
> To: CF-Talk
> Subject: RE: EQ vs IS
> 
> It's all a bit hazy, but I seem to remember having to use IS NULL because
> EQ
> NULL returned false results.
> 
> 
> -Original Message-
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 8:38 PM
> To: CF-Talk
> Subject: RE: EQ vs IS
> 
> 
> They are the same. Some people like to use EQ for numeric values and IS
> for
> strings just to make it easier to read/follow the code. Other than that...
> they are no different... they are even the same number of bytes toward the
> overall file size :-)
> 
> -Original Message-
> From: David Gardner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 7:24 PM
> To: CF-Talk
> Subject: EQ vs IS
> 
> If this has been through the ringer already, forgive me.  Just give me
> the verdict.  No reason to rehash anything.
> 
> On MX 7
> 
> My old supervisor told me that "EQ" was better to use than "IS" when
> comparing things.  His info is usually based on fact, so I've taken
> that as rote.
> 
> I've done some tests, but neither seems consistently victorious.
> 
> Is there an agreed-upon conclusion on this issue, or do different
> folks have their opinions?
> 
> 
> I'm optomizing some code that's causing someone's server to crash.
> I'm wondering if I need to take the time to convert all the IS to EQ
> or vice versa?
> 
> 
> 
> 
> 
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268219
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-31 Thread Damien McKenna
On 1/30/07 8:22 PM, Russ wrote:
> I always use eq,

I always use ==.  Oh, maybe that's why it doesn't work 

I'm honestly surprised more books (inc the beginning training materials)
don't explicitly state that "eq" and "is" are the same, just to help save
people having a "doh" moment later on and feeling silly - it's on a few
words?

-- 
Damien McKenna - Web Developer [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include 




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268217
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-31 Thread Peterson, Chris
I try and use both, just to be sure


do something very important
 


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 11:12 AM
To: CF-Talk
Subject: Re: EQ vs IS

On 1/31/07, Rick Root <[EMAIL PROTECTED]> wrote:
> I must be backwards, because I use "is" for numeric comparisons and
"eq" for
> all others.

dude that's just wrong.

:)

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must
catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268213
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-31 Thread Charlie Griefer
On 1/31/07, Rick Root <[EMAIL PROTECTED]> wrote:
> I must be backwards, because I use "is" for numeric comparisons and "eq" for
> all others.

dude that's just wrong.

:)

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268212
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-31 Thread Dave Francis
It's all a bit hazy, but I seem to remember having to use IS NULL because EQ
NULL returned false results.


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 8:38 PM
To: CF-Talk
Subject: RE: EQ vs IS


They are the same. Some people like to use EQ for numeric values and IS for
strings just to make it easier to read/follow the code. Other than that...
they are no different... they are even the same number of bytes toward the
overall file size :-)

-Original Message-
From: David Gardner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 7:24 PM
To: CF-Talk
Subject: EQ vs IS

If this has been through the ringer already, forgive me.  Just give me
the verdict.  No reason to rehash anything.

On MX 7

My old supervisor told me that "EQ" was better to use than "IS" when
comparing things.  His info is usually based on fact, so I've taken
that as rote.

I've done some tests, but neither seems consistently victorious.

Is there an agreed-upon conclusion on this issue, or do different
folks have their opinions?


I'm optomizing some code that's causing someone's server to crash.
I'm wondering if I need to take the time to convert all the IS to EQ
or vice versa?





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-31 Thread Rick Root
I must be backwards, because I use "is" for numeric comparisons and "eq" for
all others.

Usually. =)

Rick


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268195
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS

2007-01-30 Thread Andrew Scott
LOL,

Me too, and the swear job just fills up fast when I am coding :-)



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 31 January 2007 1:23 PM
To: CF-Talk
Subject: Re: EQ vs IS

I always use "="  then swear when i get the error message and change it to
"EQ"

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268161
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-30 Thread Mike Kear
I always use "="  then swear when i get the error message and change it to
"EQ"

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268160
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: EQ vs IS

2007-01-30 Thread Bobby Hartsfield
They are the same. Some people like to use EQ for numeric values and IS for
strings just to make it easier to read/follow the code. Other than that...
they are no different... they are even the same number of bytes toward the
overall file size :-)

-Original Message-
From: David Gardner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 7:24 PM
To: CF-Talk
Subject: EQ vs IS

If this has been through the ringer already, forgive me.  Just give me
the verdict.  No reason to rehash anything.

On MX 7

My old supervisor told me that "EQ" was better to use than "IS" when
comparing things.  His info is usually based on fact, so I've taken
that as rote.

I've done some tests, but neither seems consistently victorious.

Is there an agreed-upon conclusion on this issue, or do different
folks have their opinions?


I'm optomizing some code that's causing someone's server to crash.
I'm wondering if I need to take the time to convert all the IS to EQ
or vice versa?



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268158
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-30 Thread Matt Robertson
way back when you could use functions for faster performance than EQ or IS.

http://www.fusionauthority.com/alert/index.cfm?alertid=5#Tech2

I do not believe the above is still true in the Post-MX world but I
still do it out of habit.  compareNoCase for strings and compare for
numerics and case-sensitive strings.

-- 
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268157
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: EQ vs IS

2007-01-30 Thread Russ
I always use eq, but if you want to rewrite the code for consistency's sake,
a quick search/replace in cfeclipse should do it.  

Russ

> -Original Message-
> From: Doug Brown [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 30, 2007 8:06 PM
> To: CF-Talk
> Subject: Re: EQ vs IS
> 
> Same here. I use eq when comparing numeric values since it just seems like
> the right thing to do and IS when comparing strings. All does the same
> thing, just whatever your preference. I would not re-write all the code,
> as
> it really will not have any effect on the application.
> 
> Doug B.
> 
> 
> 
> - Original Message -
> From: "Charlie Griefer" <[EMAIL PROTECTED]>
> To: "CF-Talk" 
> Sent: Tuesday, January 30, 2007 5:27 PM
> Subject: Re: EQ vs IS
> 
> 
> > they're the same.  both are comparison operators and since CF is a
> > typeless language, at the CF level it doesn't matter which you use.
> >
> > i do use IS for comparing strings and EQ for anything else, but that's
> > just a matter of preference and has nothing to do with performance.
> >
> > On 1/30/07, David Gardner <[EMAIL PROTECTED]> wrote:
> > > If this has been through the ringer already, forgive me.  Just give me
> > > the verdict.  No reason to rehash anything.
> > >
> > > On MX 7
> > >
> > > My old supervisor told me that "EQ" was better to use than "IS" when
> > > comparing things.  His info is usually based on fact, so I've taken
> > > that as rote.
> > >
> > > I've done some tests, but neither seems consistently victorious.
> > >
> > > Is there an agreed-upon conclusion on this issue, or do different
> > > folks have their opinions?
> > >
> > >
> > > I'm optomizing some code that's causing someone's server to crash.
> > > I'm wondering if I need to take the time to convert all the IS to EQ
> > > or vice versa?
> > >
> > >
> >
> >
> 
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268154
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: EQ vs IS

2007-01-30 Thread Doug Brown
Same here. I use eq when comparing numeric values since it just seems like
the right thing to do and IS when comparing strings. All does the same
thing, just whatever your preference. I would not re-write all the code, as
it really will not have any effect on the application.

Doug B.



- Original Message - 
From: "Charlie Griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Tuesday, January 30, 2007 5:27 PM
Subject: Re: EQ vs IS


> they're the same.  both are comparison operators and since CF is a
> typeless language, at the CF level it doesn't matter which you use.
>
> i do use IS for comparing strings and EQ for anything else, but that's
> just a matter of preference and has nothing to do with performance.
>
> On 1/30/07, David Gardner <[EMAIL PROTECTED]> wrote:
> > If this has been through the ringer already, forgive me.  Just give me
> > the verdict.  No reason to rehash anything.
> >
> > On MX 7
> >
> > My old supervisor told me that "EQ" was better to use than "IS" when
> > comparing things.  His info is usually based on fact, so I've taken
> > that as rote.
> >
> > I've done some tests, but neither seems consistently victorious.
> >
> > Is there an agreed-upon conclusion on this issue, or do different
> > folks have their opinions?
> >
> >
> > I'm optomizing some code that's causing someone's server to crash.
> > I'm wondering if I need to take the time to convert all the IS to EQ
> > or vice versa?
> >
> >
>
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268152
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: EQ vs IS

2007-01-30 Thread Charlie Griefer
they're the same.  both are comparison operators and since CF is a
typeless language, at the CF level it doesn't matter which you use.

i do use IS for comparing strings and EQ for anything else, but that's
just a matter of preference and has nothing to do with performance.

On 1/30/07, David Gardner <[EMAIL PROTECTED]> wrote:
> If this has been through the ringer already, forgive me.  Just give me
> the verdict.  No reason to rehash anything.
>
> On MX 7
>
> My old supervisor told me that "EQ" was better to use than "IS" when
> comparing things.  His info is usually based on fact, so I've taken
> that as rote.
>
> I've done some tests, but neither seems consistently victorious.
>
> Is there an agreed-upon conclusion on this issue, or do different
> folks have their opinions?
>
>
> I'm optomizing some code that's causing someone's server to crash.
> I'm wondering if I need to take the time to convert all the IS to EQ
> or vice versa?
>
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268150
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: EQ vs IS (was:Re: [OT] ShittyCode.Com (Launched new site last night, feedback please!))

2003-09-11 Thread Dave Watts
> > 
> 
> This is "greater than" - I think you mean:
> 
>   

Thanks for catching my typo!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


Re: EQ vs IS (was:Re: [OT] ShittyCode.Com (Launched new site last night, feedback please!))

2003-09-10 Thread Sean A Corfield
On Wednesday, Sep 10, 2003, at 14:07 US/Pacific, Dave Watts wrote:
> In earlier versions of CF (and in CFMX for all I know), all of
> these are acceptable ways to perform a "greater than or equal to" test:
>
> 

This is "greater than" - I think you mean:



> 
>  (I doubt this last one is still
> supported, actually.)

CFMX 6.1 still seems to support this... frighteningly reminiscent of 
COBOL! :)

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


RE: EQ vs IS (was:Re: [OT] ShittyCode.Com (Launched new site last night, feedback please!))

2003-09-10 Thread Dave Watts
> if they are the same, why do we have both, maybe because you 
> cant use
> 
> 1 is 2
> or can you?

You can use either in any case when you want to test equality. As for why we
have both, who knows? There are multiple ways to perform other tests in CF
as well. In earlier versions of CF (and in CFMX for all I know), all of
these are acceptable ways to perform a "greater than or equal to" test:



 (I doubt this last one is still
supported, actually.)

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


RE: EQ vs IS (was:Re: [OT] ShittyCode.Com (Launched new site last night, feedback please!))

2003-09-10 Thread Tony Weeg
yeah, that's how I learned, and how I separate them. in fact, when
thinking of comparing
numeric values it always made more sense to use eq cause I could
envision the = sign there.

and when I check for string matches, is just made more sense reading
it...WOW...maybe ill stick
with it they way I have, just for readabilities sense.

if they are the same, why do we have both, maybe because you cant use

1 is 2
or can you?

tony weeg
sr. web applications architect
navtrak, inc.
[EMAIL PROTECTED]
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 4:30 PM
To: CF-Talk
Subject: EQ vs IS (was:Re: [OT] ShittyCode.Com (Launched new site last
night, feedback please!))


- Original Message - 
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 12:22 PM
Subject: RE: [OT] ShittyCode.Com (Launched new site last night, feedback
please!)


> oh ok cool.
> just thought that eq did numbers
> and is did strings.

FWIW, while Matt is 100% correct that there is no difference, I
generally try to use EQ on numeric values and IS on strings (or even a
compare() or
compareNoCase() on strings).  But always EQ on numbers.  Just seems more
intuitive to me.

Charlie


> well, I learn again.
>
> tony weeg
> sr. web applications architect
> navtrak, inc.
> [EMAIL PROTECTED]
> www.navtrak.net
> office 410.548.2337
> fax 410.860.2337
>
>
> -Original Message-
> From: Matt Liotta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 2003 3:12 PM
> To: CF-Talk
> Subject: Re: [OT] ShittyCode.Com (Launched new site last night, 
> feedback
> please!)
>
>
> There is no difference between is and eq in CFML.
>
> -Matt
>
> On Wednesday, September 10, 2003, at 03:03 PM, Tony Weeg wrote:
>
> > cool idea pablo :)
> >
> > but in the first cf code one
> >
> > The correct way of doing this would be as follows:
> >
> > 
> > Pablo Varando
> > 
> > Another User
> > 
> >
> > shouldn't that be
> >
> > 
> > Pablo Varando
> > 
> > Another User
> > 
> >
> > or does that not matter...i thought *eq* was used for numeric and 
> > *is*
>
> > was used for string checking?? eh?
> >
> > tony weeg
> > sr. web applications architect
> > navtrak, inc.
> > [EMAIL PROTECTED]
> > www.navtrak.net
> > office 410.548.2337
> > fax 410.860.2337
> >
> >
> > -Original Message-
> > From: Pablo Varando [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 10, 2003 2:44 PM
> > To: CF-Talk
> > Subject: [OT] ShittyCode.Com (Launched new site last night, feedback
> > please!)
> >
> >
> > Last night, I launched a new site, it can be seen at:
> >
> > http://www.shittycode.com
> >
> > I wanted to see if I could get some feedback on the site, the 
> > concept,
>
> > and maybe even the name! :)
> >
> > Thanks,
> > Pablo Varando
> > http://www.easycfm.com
> >
> >
> >
>
> 

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm