"Any sufficiently advanced bug is indistinguishable from a feature."
"Programming is an art form that fights back."
"There are two ways to write error-free programs; only the third one works."
Saturday, October 20, 2007
Tuesday, October 16, 2007
Ioc is very simple and important.
I attended the CMAP code camp this past weekend and sat in on Michael Pastore's excellent presentation on Dependency Injection and Inversion of Control.
Although I was already familiar with DI/IOC his presentation managed to sharpen my understanding of why Ioc is important.
I don't have Mike's exact definition of Ioc but in my words:
"Ioc is where code surrenders control or configuration to external code"
This is very common in most Frameworks including the the .NET framework.
Consider the TrueForAll method from List from reflector:
This method delegates control to the Predicate inverting the control to the caller. These delegate / callback methods appear all over the .NET framework.
So in my opinion Ioc is a very important concept that every developer should understand to effectively implement that Single Responsibility Principle.
Although I was already familiar with DI/IOC his presentation managed to sharpen my understanding of why Ioc is important.
I don't have Mike's exact definition of Ioc but in my words:
"Ioc is where code surrenders control or configuration to external code"
This is very common in most Frameworks including the the .NET framework.
Consider the TrueForAll method from List
public static bool TrueForAll<T>(T[] array, Predicate<T> match) |
So in my opinion Ioc is a very important concept that every developer should understand to effectively implement that Single Responsibility Principle.
Subscribe to:
Posts (Atom)