5 ms·
Hi chunkyfunky. I recently read Clean Code, great book. I agree with your take on DIP. We're using Microsoft Service Collection and with the Scrutor nuget com
by peheje 6y ago
Hi chunkyfunky. I recently read Clean Code, great book.
I agree with your take on DIP.
We're using Microsoft Service Collection and with the Scrutor nuget component we were able to easily decorate an implementation from another package to extend the functionality adhering to the open closed principle OCP.
DI also enables your code to be open for extension but closed for modification.
Great stuff!
- chunkyfunky 6y agoScrutor looks great, I must take it for a spin! And that is a great point about DI - being able to extend code/behaviour by injecting a different implementation of a dependency