"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.
Friday, October 12, 2007
My Seven Year old is out blogging me!
My seven year old took up blogging last week.
Has a real fascination with star wars. (Webkinz is is side hobby)
It's really pathetic that I can't seem to blog as much as he does! Yikes!
Has a real fascination with star wars. (Webkinz is is side hobby)
It's really pathetic that I can't seem to blog as much as he does! Yikes!
Friday, September 28, 2007
A nice quote relative to current work
I'm currently working on a Presenter First design and I stumbled across this quote:
"Doing encapsulation right is a commitment not just to abstraction of state, but to eliminate state oriented metaphors from programming." — Alan Kay, Early History of Smalltalk.
"Doing encapsulation right is a commitment not just to abstraction of state, but to eliminate state oriented metaphors from programming." — Alan Kay, Early History of Smalltalk.
Wednesday, September 12, 2007
Subscribe to:
Posts (Atom)