What is a fat Interface?

后端 未结 4 1915
别那么骄傲
别那么骄傲 2021-01-15 02:08

Ciao, I work in movie industry to simulate and apply studio effects. May I ask what is a fat interface as I hear someone online around here stating it ?

Edit: It is

4条回答
  •  忘掉有多难
    2021-01-15 02:46

    very simple explanation is here:

    The Fat Interface approach [...]: in addition to the core services (that are part of the thin interface) it also offers a rich set of services that satisfy common needs of client code. Clearly, with such classes the amount of client code that needs to be written is smaller.

    When should we use fat interfaces? If a class is expected to have a long life span or if a class is expected to have many clients it should offer a fat interface.

提交回复
热议问题