Response below...

On 3/15/07, Nando <[EMAIL PROTECTED]> wrote:
Sammy,

Ok, i'll bite.

What's inversion of control, and what purpose does it serve? If you
can, please explain it to me through those terms so i really
understand what control is inverted here and why it's helpful for me
to understand it that way in order to use ColdSpring. Are you up to
that?

I easily get the concept "wiring my services/CFCs together so they can
work together" and i think that's easy for most people to understand.
I still don't get the inversion of control thing. There's a central
config file, i can manage all the dependencies from there. why is that
considered "inverted"? to be honest, the concept just isn't useful to
me to understand how to use ColdSpring. (i kinda wish i could have
turned the word ColdSpring upsidedown there, made it inverted! ;-)


Because Coldspring handles of the creation of the objects and handing
them to other objects when requested (as defined in your xml config
file), the control is inverted. When the control is not inverted, each
CFC must be responsible for creating, initializing, etc. any other CFC
it needs.

Inversion means a reversal or change in position. By using ColdSpring
to control the CFC management, you have inverted the control from each
individual CFC to the ColdSpring "container", a word Chris Scott
prefers over "framework" (Fusion Authority Quarterly Update, Fall
2006).

Matt


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to