While I'll agree that the readability/maintainability factor is 
important from a developer's viewpoint, that particular article was 
specifically focused on performance and was merely pointing out which 
functions were technically faster.

If one function is built to be faster than another function, then that's 
how it's going to perform, regardless of whether or not it's easy for 
the developer to read.

That being said, I'll have to agree with Brad and Charlie on sometimes 
coding what's easiest to read and maintain.  You do reach a point where 
maintainability can play a larger role than squeezing out every tiny 
little millisecond of speed (on most apps).


Thanks,

Eric Cobb
Certified Macromedia ColdFusion MX 7 Developer
http://www.cfgears.com


Charlie Griefer wrote:
> I'd be leery of something that says, "always".
> 
> Sometimes, it's OK to consider the readability/maintainability factor.
> 
> On Wed, Jul 15, 2009 at 2:08 PM, Eric Cobb <[email protected]> wrote:
> 
>> According to this "Performance tuning for ColdFusion applications" post,
>> you should always use compare() or compareNoCase() instead of the IS NOT
>> operator, and you should use listFindNoCase() or listFind() instead of
>> the IS and OR operators.
>>
>>
>> http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html
>>
>>
>> Thanks,
>>
>> Eric Cobb
>> Certified Macromedia ColdFusion MX 7 Developer
>> http://www.cfgears.com
>>
>>
>> Jason Fisher wrote:
>>> I have long been in the habit of using EQ and NEQ (and now moving to ==
>> and !=) for numbers in all cases, since there is no such thing as 'sort of
>> equivalent', like there is with strings ('foo IS FOO' etc).  For strings I
>> use IS, unless case is important, and then I use CompareNoCase().
>>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324557
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to