The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jjenkov (13) [Avatar] Offline
I like chapter 1. It's a good introduction to the topic of dependency injection. I have two minor comments:

1) The chapter assumes the reader is familiar with unit testing. This is not necessarily a problem.

2) I cannot remember if it is chapter 1 that has a reference to Martin Fowlers text on dependency injection "Inversion of Control Containers and the Dependency Injection Pattern". While I agree that it is probably this text that coins the principle "depedency injection" - the text is also pretty much obsolete. Fowler compares DI to the ServiceLocator pattern looking only at instantiation of objects, but completely ignores all other aspects of a modern DI container. I have commented on this in my DI tutorial, and you could too in your comparison to the Service Locator pattern. A DI container gives you so much more than the Service Locator pattern does.

Here are the links to my and Fowlers texts: