Using a Factory (or Coldspring) to create my objects has changed my life.
Instead of having code like this all over the place:

<cfset OrderObj=
        createObject('Component','Mapping.OrderObj')
        .init(createAnotherObject, andAnother, andAnother) />

I simply do this:

<cfset OrderObj=Factory.Load('OrderObj') />

The code is clean, all dependencies are taken care of, and in case the CFC
changes I only have to reflect those changes in the factory.

I was wondering if any similar patterns, methodologies or frameworks existed
for managing TAGs, a TAG factory so-to-speak? Basically something to simply
this:
 
<Payment:Form 
        PaymentObj="#PaymentObj#" 
        CustomerObj="#CustomerObj#"
        Utils="#Utils#">

Is it even logically feasible?

Cheers,
Baz





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229876
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to