> Thanks again for the suggestions.  Last question, I swear:  
> why do you not like using the <cfscript> tag at the top of 
> your components?  That seems to be the cleanest solution, 
> since you don't have to explicitly call the init function 
> outside of the component.  Is there a performance hit to this 
> method, or do you simply prefer to not have functionality 
> buried in your components that resides outside of the functions?

There are two reasons why you might want to do this. First, it's
unnecessarily complicated. Why have the init function if you're going to
call it without passing arguments? Why not just create the instance
variables directly? Second, you may not want to create the instance
variables unless you explicitly call an init function when you instantiate
the component, because it's my understanding that those variables will also
be created when CF instantiates the component to look at its metadata (for
example, when you browse it to see the system-generated documentation).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:207885
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

Reply via email to