This is one of those topics where I see people making CFC's into something they aren't. Yeah, CFC's can be used to separate BL from UI blah blah blah. But that doesn't preclude the use for other things.
I see so many emails floating around about OO design and how this rule keeps you from doing this or that or that you must follow this way of doing things. The plain fact is that CF is still procedural by nature with some OO abilities. I say use CFC's for whatever you want to use them for. You might just stumble on a really neat implementation. I'm currently in the middle of "OOP Demystified". Excellent book so far. The author gives real world examples of creating objects. Then he also gives situations where it might not be the best course of action to use OO, but to do it procedurally. That was surprising from an OO book. He said that OO programmers will model objects after reality and sometimes, to keep to the hard and fast rules of OO design, they would 'bend' reality to fit the OO model. If you get a chance, check out the book. It starts out like all the other OO books I've read, but then after the definition chapters, he'll actually start using real world designs to illustrate his points. Marlon On Thu, 3 Mar 2005 11:43:09 -0500, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > I'm starting this topic to get peoples feelings on the subject. Do you use > CFCs for UI? Do you have a good reason to do so? Do you see a reason to use > it (or not) vs. CFINCLUDEs or CFMODULEs? > > According to commonly discussed practices in the community (and in part of > the Macromedia docs), UI elements should not go inside of CFCs. > According to the Macromedia CFC examples, UI can go inside CFCs. > According to the makeup of the CFCOMPONENT and CFFUNCTION tags, the ability > exists explicitly (the output attribute). > According to many of the OO books I've been reading, there's no reason for > UI not to be within an object. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197281 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

