> One immediate comment is that you extend "Config" in your "AmazonKit" --
> but, that violates the "is a" best practice for using extends.
> Why not give
> it an init() method that takes a Config (perhaps called it AmazonConfig?),
> or even just takes the XML itself and deals with it?

Valid point.  I've gotten in the habit of using that config.cfc format all
of my cfc files.  It comes in particularly handy when I have several CFCs
sharing similar config options.  As you point out though, it's not exactly
correct per the OO world's rules.

Since I tend to use a config.cfc for alot of work, I'm most likely to leave
it in it's own cfc.  Dropping an instance of config.cfc inside the
amazonKit.cfc in an init() can have the same effect and would allow me to
stick with my current practices (bad habits?).  :)

-Cameron

-----------------
Cameron Childress
Sumo Consulting Inc.
http://www.sumoc.com
---
land:  858.509.3098
cell:  678.637.5072
aim:   cameroncf
email: [EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Nathan Dintenfass
> Sent: Thursday, April 08, 2004 8:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] New - Amazon WebService CFC
>
>
> Thanks for sharing this.
>
> One immediate comment is that you extend "Config" in your "AmazonKit" --
> but, that violates the "is a" best practice for using extends.
> Why not give
> it an init() method that takes a Config (perhaps called it AmazonConfig?),
> or even just takes the XML itself and deals with it?
>
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Behalf Of Cameron Childress
> > Sent: Thursday, April 08, 2004 8:49 PM
> > To: [EMAIL PROTECTED]
> > Subject: [CFCDev] New - Amazon WebService CFC
> >
> >
> > Just finished putting together some materials around a Amazon
> CFC I built
> > some time ago.  It handles retrieving XML for any ASIN and then
> applying a
> > number of different XSL Transformations on it, automatically
> formating the
> > result with your Amazon AssociatedID.  Caching, etc, all included...
> >
> > Feedback is welcome:
> > http://www.sumoc.com/index.cfm?fuseaction=amazonkit.home
> >
> > -Cameron
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to