Hi all, I understand that CFCs shouldn't rely on external variables and that instead them should be passed to methods as arguments and I try to do that as much as I can ...
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? :-) BTW, for now most of my CFCs are just functions libraries (e.g. no instance data, except the datasource, etc.), I dind't get into full OOP yet. Thanks. ---------------------------------------------------------- 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]
