The adventure of writing meaningful code.
Inversion of Control
If you are building an application that has a lot of modules and those modules can be plugged in dynamically then you will probably want to use inversion of control (IoC).
What can inversion of control do for you?
- help you deal with the configuration of all the modules
- a one “single point change” so you wont have to hunt down every other place where things could go wrong
- help with transparency as you just have to use a module and not worry how it is implemented
- provide a nice way to have strong contracts (due to interfaces)
- finally, the application can change it’s own behavior when it believes it is necessary at runtime
If you want to learn more I would recommend reading the the famous article written by Martin Fowler.
| Print article | This entry was posted by dan on February 4, 2010 at 5:16 pm, and is filed under Inversion of Control. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |