3 ms·
They're not really exclusive ideas. The Constructor Injection section in Fowler's article is exactly the same as the Strategy pattern. But no one talks about th
by squeaky-clean 1y ago
They're not really exclusive ideas. The Constructor Injection section in Fowler's article is exactly the same as the Strategy pattern. But no one talks about the Strategy pattern anymore, it's all wrapped into the idea of DI and that's what caught on.
- morsecodist 1y agoIt was interesting reading this exchange. I have a similar understanding of DI to you. I have never even heard of a DI framework and I have trouble picturing what it would look like. It was interesting to watch you two converge on where the disconnect was.
- rjbwork 1y agoUsually when people refer to "DI Frameworks" they're referring to Inversion of Control (IoC) containers.
- deleted 1y ago[deleted]
- layer8 1y agoI'm curious, which language/dev communities did you pick this up from? Because I don't think it's universal, certainly not in the Java world. DI in Java is almost completely disconnected from what the Strategy pattern is, so it doesn't make sense to use one to refer to the other there.