I generally try to follow a seperation of logic type of approach to udf's
and cfc's. For example, if I have functions that are for any sort of
visual formatting of text and such, I put those into a single cf template
that I include at some pertinent spot in the architecture. Any functions
that have to do with manipulating data, such as info going into or coming
out of application/session scope or a datasource, I usually put into a cfc
and invoke that cfc as an object in an appropriate scope.

Essentially, if it gets or sets data, it's a cfc. If it's for prettifying
my site, it's a udf.

Benjamin


> I am at a quandary right now weather or not I should place my UDFs in
> an include or a CFC. What do most of you do? Is there a difference if
> you you either place the included UDFs in the request scope or place
> the CFC in the app/session scope?
>
> Right now I have gone CFC crazy and placed them in one. But I have an
> app that is going to be used eventually by thousands of people a day
> (intranet) and possibly across the country (extranet). SO I am looking
> at ways to make this thing much more efficient.
>
> Regards,
>
> Ian
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Ian Sheridan
> [EMAIL PROTECTED]
> http://www.savagevines.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to