Search This Blog

Tuesday, November 16, 2010

The Dark side of Dependency Injection

I have been thinking about dependency injection from time to time. I have long suspect that the issue of couplings being adressed by DI framework must have given rise to some problems elsewhere. There is no free lunch. Remember whack-a-mole syndrome?. Like a nuclear reactor with almost indefinite energy production and  yet generate those radioactive waste as the consequence of operating one. The following article "This dependency injection madness must end!" highlight problems created by  using DI framework. Notable quote from above article:
First, understanding which dependency is actually used (and why!) can require a lot of brain power: It will require you to consider all possible configurations when you look at a dependency and it will not work well with the normal code navigation functionality of your IDE. Second, the configuration will tend to deteriorate: When you no longer use a dependency, will you check whether you can remove it, or will you just leave it there to be safe?

Wednesday, November 3, 2010

America need more Edwin H Lands..

My wife and I were taking our kids to the Museum of Science, Boston(MOS) since they were out of school for a day since their school being used for yesterday's November 2, 2010 mid-term election.
By chance, I came across poster board this relating to Edwin Herbert Land, one of the early pioneer in photography at the MOS..
Above link says, "In the matter of U.S. patents granted, Land (with over 500 to his credit) stands second only to Thomas Edison."

I can't help but notice this quote attributed to him:
"An essential aspect of creativity is not being afraid to fail.."