Inversion of Control: Context
I read a bit about IoC, and while I think that it's a useful pattern, I've not used it in my applications. Mainly for lack of need and reluctance to complex my life even further :-). Not to mention that I dislike learning another XML Dialect.
After reading this article, it seems that IoC can be much better than the current popular implementations.
The gist of the article is using an interface that encapsulate all the external needs for the class, which allows for greater flexibility and testability. I'll probably use it on the next application that I'll create.
Comments
Comment preview