Phillip, One of the things that CFC's can do is encapsulate repetitive code, you can write a function one time and call it multiple times.
One of the other big things is that CFC's and OO in general, allow you to build apps that are more easily scaled... It sounds like CFC's aren't the issue but the improper use thereof Check out Dan Wilson's blog for some great refactoring tutorials http://www.nodans.com/page.cfm/Tutorials -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 -----Original Message----- From: Phillip Vector [mailto:[email protected]] Sent: Tuesday, September 08, 2009 2:35 PM To: cf-talk Subject: Re: CFC's.. Why use them? Thanks for the replies guys. I have currently the task of converting over a straight forward web app to fusebox. The app already has allot of repeat code and this isn't something that is going to be easy at all. One thing I have going on is that I have LOTS of cfcs. I mean, LOTS of them (over 100). I was hoping to move them into basic action files and query files for ease of viewing and working on. That's the main drive of converting to fusebox in the first place. So we can have all the code there to see. Repeating the code isn't an issue as long as it can be divided out so if one person messes up the cfc in the accounting circuit, it won't mess things up in ordering and such. I was just wondering if the site will take a major performance hit if I change it from individual files to cfcs or visa versa. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326113 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

