"My conclusion was that CFCs treated as function libraries incurred
unnecessary overhead while offering no additional benefit over a pre-CFC
function library."

Because you were creating the object each time? You could have cached it.

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-----
From: Mike Chabot
Sent: 02 November 2008 03:01
To: cf-talk
Subject: Re: CFC and Form Variables Question


Regarding this.validate, I'm writing abstractly to refer to validating
an object's data within the object as opposed to sending it out to a
separate validation object. You won't find this in any manual.

Back when CFCs first came out I extensively researched how best to
handle function libraries since I was creating a very high profile,
high traffic, mission critical Web application. I was trying to make
use of CFCs extensively because I saw that as the direction CF was
headed and it was the hot new feature. My conclusion was that CFCs
treated as function libraries incurred unnecessary overhead while
offering no additional benefit over a pre-CFC function library. With
CF8 things are different in that CFCs in CF8 are much faster, plus
they play nice with technologies such as AJAX and Flex.

Going back to your original question, you can pass the form structure
into a CFC function if you want to. It still seems strange to me, but
many decisions in CF come down to personal preference.

-Mike Chabot


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314743
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