I can see how a CFC can get large as is it supposed to be a library of like functions, so if you had a site that had a calendar that was cfc based (for instance) and you had all of you calendaring functions in that cfc, that could get huge. Would you really want to break up the functional unit into separate CFC's? Would that be any more efficient than having them in one big file (as long as they were all related of course).
Eric /*-----Original Message----- /*From: Michael Christensen [mailto:[EMAIL PROTECTED] /*Sent: Wednesday, June 04, 2008 5:42 AM /*To: CF-Talk /*Subject: Re: Best CF editor? /* /*So if I have a file - file.cfc for example - I could split it up easily? /* /*But would I still be able to instanciate it the same way? /* /* /*>> I am sure you know as well as I, that sometimes refactoring is just not /*an option... /*> /*>That's true, although with either CFCs or includes there are easy ways /*>to divide the file up into multiple without actually refactoring them /*>and take just a few minutes. /*> /*><cfif b>...1000 lines of code<cfelse>...1000 lines of code</cfif> /*> /*>becomes /*> /*><cfif b><cfinclude template="1000lines.cfm"> /*><cfelse><cfinclude template="1000lines2.cfm"></cfif> /*> /*>Or in a CFC /*> /*><cfcomponent extends="thing"> /*>... 2000 lines ... /*></cfcomponent> /*> /*>becomes /*> /*><cfcomponent extends="thing"> /*>...1000 lines ... /*></cfcomponent> /*> /*><cfcomponent extends="1000lines"> /*>...another 1000 lines... /*></cfcomponent> /*> /*>Inelegant though it may be, it's not very time consuming. /*> /*>-- /*>s. isaac dealey ^ new epoch /*> isn't it time for a change? /*> ph: 617.365.5732 /*> /*>http://onTap.riaforge.org/blog /* /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306816 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

