Thursday, February 22, 2018

Dependency Injection

In my day job I've been helping architect a restful service framework for another group.  Amazingly the  developers in this group weren't aware of dependency injection.  After confusing them by trying to explain the concept and how mocking works etc I decided to hunt around for a simple example.  I was surprised at how bad most of the explanations and examples out there are.  Fortunately I stumbled across this excellent blog post on

I showed it to the developers and they said it instantly clicked.