3 ms·
You're right. The biggest thing that DI frameworks have historically done for me is make mock injection easier. There are other benefits, however. - Manual wir
by caoilte 10y ago
You're right. The biggest thing that DI frameworks have historically done for me is make mock injection easier.
There are other benefits, however.
- Manual wiring generally has quite a lot of boiler plate (even in Scala, especially if you use free monads)
- DI frameworks enforce a pattern of behaviour. This can be especially helpful when navigating a project.
Having said that, whether these benefits are worth the cost of a DI framework is debatable. My current weapon of choice is FreeK...