>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]
