Well, OO sure promised a lot in the early days. And these promises are still being made to naive programmers sitting in classrooms, reading blogs and taking online courses.
It’s taken me years to realize how OO lied to me. I too was wide-eyed and inexperienced and trusting.
And I got burned.
Good-bye, Object Oriented Programming.
E2E: Erik Meijer and Robert Griesemer – Going Go
Cross posted from MSDN’s channel 9
I believe it is wrong to take one paradigm and stretch it out all the way.
In the same way that it is wrong to take the object-oriented paradigm and say that it is the only way.
What is Dependency Injection?
As a rule of thumb, constructor injection is best for required dependencies, like in our example, and setter injection is best for optional dependencies, like a cache object for instance.