On Monday, August 18, 2003 11:36 AM US/Mountain, Sean Corfield wrote:
> 
> "inheritance as reuse" is common but not recommended!

I sort of understand why it isn't recommended, but if you'd expound, I'd
appreciate it.  Is it because you can only extend one thing, so you'd better
make sure that one thing is appropriate, or else you might need to extend
the proper thing later and then it would be difficult?  Maybe it wouldn't be
so bad if we could extend multiple CFCs?

> > I think I am basically doing that; my cached variable is called 
> > 'instance',
> 
> But why even do that? I assume you've got something like:
> 
>       <cfset instance = server.cachedObject.getMyData("someKey") />
> 
> Is it just for the 'convenience' of having a local alias for the data?

That, plus I can write my CFC so that it doesn't have to know it got its
data from cache, once it has it.  Just one function call and one other minor
change and from then on it's like any other non-cached CFC.

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

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

Reply via email to