> Surely if the arguments are named,typed and/or required, then the outside
> world needs very in depth knowledge of what to pass? unlike in my scenario?

(Keep in mind that this is all my opinion, and that I am still rather
new at this as well.)

The outside world knowing what you need to pass is fine and dandy.  
That's interface knowledge - knowing the "outside" of the object and
how it interacts and passes messages about.  Interface knowledge is a
good thing - it implies encapsulation of functionality.

In your scenario, the interface to the method, because it doesn't use
cfargument, takes anything.  The outside world has to somehow "know"
what the internal guts of the method are going to want, and instead of
discovering it through a cfargument'd interface, it just somehow
"knows."

That knowledge is a coupling in which the outside world must therefore
know something about the implementation that takes place inside of the
method, and implementation knowledge is what we're trying to avoid
through functional encapsulation in the first place.

I could see the genericDAO scheme working if there was an argument on
the create method that required an object that implemented a
fictitious interface dictating that that it only took objects with a
getConfig() method.

-Joe


-- 
For Tabs, Trees, and more, use the jComponents:
http://clearsoftware.net/client/jComponents.cfm
----------------------------------------------------------
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