nm i'm on crack
scott. "Scott Barnes" <[EMAIL PROTECTED]> wrote in message news:22104@cfaussie... > > Heyas, > > I am using a CFC process type model, in that i have a parent Object, which i > call person. Beneath it i have relevant objects connected to the person > object that allow me to carry out different routines aswell as track > different variables throughout the 'person' interaction / movements of a > site. > > My question is, is it unhealthy for the application and good ol fashion OOP > principals to attach objects to the person object (this being the parent) or > is it better to simply create instances of that object that do not bolt onto > the parent object... eg: > > --- Bolted on style ---- > <cfscript> > // Define the Objects Instance > > person = createObject("component","comp.qh.customer"); > person.shopCart = createObject("component","comp.utils.shopcart"); > person.logging = createObject("component","comp.qh.logging"); > </cfscript> > > vs > > <cfscript> > // Define the Objects Instance > person = createObject("component","comp.qh.customer"); > shopCart = createObject("component","comp.utils.shopcart"); > logging = createObject("component","comp.qh.logging"); > </cfscript> > > -- > Freelance Application Developer / Designer > -- > ph: 07 3288 6702 > mob: 04040 32812 > -- > url: http://www.spidaweb.com > > > > > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
