Wednesday, August 03, 2005

Inversion of Control

Inversion of Control is a key part of what makes a framework different to a library. A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.

A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework's code then calls your code at these points.

Martin Fowler - http://martinfowler.com/bliki/InversionOfControl.html

1 comment:

Unknown said...

Did you know that if you type 'joomla inversion of control' into Google, this is the first page that comes up? I just thought someone should mention it here, and of course I can't guarantee how long that will be true for,but it is now!