Chilibeans work well for passing configuration information into your CFCs.

http://clearsoftware.net/client/index.cfm?mode=entry&entry=B1FEDAC3-E081-2BAC-69788BBAD9DDA09C

Basically it's just a CFC that wraps a CF struct but it lets you do
your configuration through XML files which are easy to manage.


On 10/27/05, Nando <[EMAIL PROTECTED]> wrote:
>
> >But sometimes I feel pretty convenient to use request variables inside
> >CFCs, especially when I have to pass in some variables (e.g. a format
> >string for the dateFormat function) that I didn't account for at the
> >beginning ...
> >
> >Is really a bad practice that should be avoided at all costs? :-)
>
> Here's my hit on it. Learning OOP is a very valuable skill. You're not going
> to learn it, or understand its value, if you don't practice it. Learning how
> to encapsulate stuff is a very important part of OO design. Figuring out how
> to do what your doing using OO design practices rather than accessing the
> request scope directly is going to flex your OO muscles - and it will
> probably ache a little in the beginning. :)
>
> So it's not that it's really bad. It's just probably keeping you more in a
> procedural mindset.
>
>
>
>
>
>
>
>
> ----------------------------------------------------------
> 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).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> 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' as the subject of the 
email.

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

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to