Dependency injection is a technique in which you make the interactions between objects as minimal as possible through specific dependencies. Here’s what to know.