What exactly is “interface based programming”?

后端 未结 8 1720
有刺的猬
有刺的猬 2020-12-02 14:46

I often hear/read about interfaced based programming but I am not exactly clear on what that really means. Is interfaced based programming an actual stand alone topic that

8条回答
  •  醉梦人生
    2020-12-02 15:35

    Chapter 6 of "Practical API Design" by Jaroslav Tulach is titled "Code Against Interfaces, Not Implementations". It explains that, by coding against an interface rather than a specific implementation, you can decouple modules (or components) in a system and therefore raise the system quality.

    Bertrand Meyer in OOSC2 explains clearly why "closing" a system and making it more modular raises its quality.

提交回复
热议问题