Delivery and Deployment

VST14 DI Why? Getting a Grip on Dependency Injection


2:45pm - 4:00pm

Level: Intermediate

Jeremy Clark

Developer Educator

Many of our modern frameworks have Dependency Injection (DI) built in. But how do you use that effectively? You need to look at what DI is and why we want to use it. You'll look at the problems caused by tight coupling. Then you'll use some DI patterns such as constructor injection and property injection to break that tight coupling. You'll see how loosely-coupled applications are easier to extend and test. With a better understanding of the basic patterns, you'll remove the magic behind DI containers so that we can use the tools appropriately in our code.

You will learn:

  • Understand why we wan to use dependency injection (DI)
  • Use constructor injection to break tight coupling
  • Make code that is easier to test, extend, and maintain