4 ms·
It’s not clear whether you dislike DI in general or specifically DI containers. I think it’s an important point to clarify because DI on its own absolutely doe
by tybit 6y ago
It’s not clear whether you dislike DI in general or specifically DI containers.
I think it’s an important point to clarify because DI on its own absolutely does not live outside of the real language and while it may be much more common to use classes than functions it’s not necessary.
I agree with your feelings in relation to DI containers however.
- brundolf 6y agoI wasn't actually aware of the distinction. I think you're right, that what I mainly dislike are DI containers. If DI just means "passing some value to something for it to use later" - which would even include currying, really - then yeah, I suppose I don't have a problem with DI/IoC themselves.