The engine should support dependency injection so that we can write modules in a more loosly coupled manner. Introducing DI makes the code more testable and lets us make modules non-static.
There are multiple benefits to introducing the pattern but we should also think about performance and where using DI makes sense.
The engine should support dependency injection so that we can write modules in a more loosly coupled manner. Introducing DI makes the code more testable and lets us make modules non-static.
There are multiple benefits to introducing the pattern but we should also think about performance and where using DI makes sense.