Jay's Blog

Friday, March 31, 2006

James Shore on Dependency Injection

"The Really Short Version: Dependency injection means giving an object its instance variables. Really. That's it."

Whenever I stumbled upon a blog post or article on 'Dependency Injection', it must have been late at night when I was half asleep. The light bulb never went off or I simply fell asleep before I finished the reading.

When I read read his simple explanation the first time, it didn't make sense. I read the rest of the post, then came back and read that line again and 'AHA'! That's it?

Powerful, yet simple.

"20-dollar term for a 5-cent concept" as the author put it. Too often people throw around fancy terminology, sometimes not even knowing what the heck they're saying, and just plain confusing the issue. Kudos to James Shore for putting it simply.

0 Comments:

Post a Comment



Links to this post:

Create a Link

<< Home