Factory vs Dependency Injection

The discussion highlights the challenges of using a global factory approach, where all objects are accessible, potentially leading to confusion. Both Markus and Eberhard explore the merits of dependency injection as a more controlled alternative, questioning when it might be impractical to implement. They emphasize that while dependency injection is often feasible, transitioning from a factory-based system can be complex and labor-intensive.