What is the dependency inversion principle and why is it important?

前端 未结 15 1143
别那么骄傲
别那么骄傲 2020-11-28 00:06

What is the dependency inversion principle and why is it important?

15条回答
  •  佛祖请我去吃肉
    2020-11-28 00:42

    Dependency inversion: Depend on abstractions, not on concretions.

    Inversion of control: Main vs Abstraction, and how the Main is the glue of the systems.

    DIP and IoC

    These are some good posts talking about this:

    https://coderstower.com/2019/03/26/dependency-inversion-why-you-shouldnt-avoid-it/

    https://coderstower.com/2019/04/02/main-and-abstraction-the-decoupled-peers/

    https://coderstower.com/2019/04/09/inversion-of-control-putting-all-together/

提交回复
热议问题