Re:You probably don't need a dependency injection framework
by baq on Monday May 26, 2025 @05:48AM
(#44095711)
Exactly, there is no problem when you do it this way and DI frameworks force you to.
The problem when you don't do it this way is when you depend on order of initialization in a way you are not aware of until it breaks, and it breaks in all kinds of interesting ways.
The problem when you don't do it this way is when you depend on order of initialization in a way you are not aware of until it breaks, and it breaks in all kinds of interesting ways.