Dependency injection is a programming technique that helps programmers be more productive. If you are writing a program that needs to sort a list, rather than writing the list-sorting code yourself, you might instead write a statement that pulls in list-sorting code from somewhere else (the “somewhere else” is “injecting” the code you “depend” on), and you just use that.
Latest Answers