Dependency Injection - Simplest tutorial ever!

Comment

I have been hearing about Dependency Injection often. So I googled and found this very useful post by James Shore. The article begins with the below excerpt.

When I first heard about dependency injection, I thought, "Dependendiwhatsit?" and promptly forgot about it. When I finally took the time to figure out what people were talking about, I laughed. "That'sall it is?"
"Dependency Injection" is a 25-dollar term for a 5-cent concept. That's not to say that it's a bad term... and it's a good tool. But the top articles on Google focus on bells and whistles at the expense of the basic concept. I figured I should say something, well, simpler.

Read the rest of the article here