Thursday, May 18, 2006, 8:44:38 AM, one spoke:

BN> My biggest problem with evaluate is not so much the method itself,
BN> but rather, that majority of the time that I see it, it reprsents
BN> a core misunderstanding of how the language can be leveraged. For
BN> instance, I see things like this A LOT!
 
BN> <cfset objValue = Evaluate("FORM." & strFieldName) />

Have you considered the possibility that the code you're looking at
was written before #form[strFieldName]# would actually run?

[How many hours/year do i spend working with code from 1998? Don't
ask.]

I think a lot of the Evaluate(evil) response comes from that same
time. The performance penalties were much greater in 4/5, and since
those versions were lots slower to begin with, people were looking for
every hack they could find to speed things up.

I don't have it around any more but Dinowitz did a paper with a bunch
of tests sometime around 2000; it may still be somewhere on the
houseoffusion or fusionauthority sites if you dig for it. (But again,
that's running CF-old.)

-- 
Jim Flannery
[EMAIL PROTECTED]






----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to