Ivan Yordanov
Oct 27, 2024

--

Talking only about DI, not DIC - Constructor injection makes object ready to use immediately, you don't need extra setup. We move possible runtime error into compile time (in case of missing or wrong setup => easier maintenance). For future changes you may find decorator more useful compared to updating existing class.

--

--

No responses yet