What is a thick interface?

Ciao, I work in the film industry to simulate and apply studio effects. May I ask what a thick interface is when I hear someone on the network talking about it?

Edit: Nichol Bolas said here (very good pointer, I think)

+2
source share
4 answers

very simple explanation here :

Fat Interface approach [...]: in addition to the basic services (included in the thin interface), it also offers a rich set of services that satisfy the general needs of client code. Obviously, with such classes, the amount of client code that needs to be written is less.

? , , , .

+6

- - , . T++ PL 24.4.3

+6

:

- - , . T++ PL 24.4.3

, - Stroustrup - , , .

, .

, , , , T++ PL - , , . , , " - , " - , . ( Wikipedia, , ; -o.)

, , , , , " " , , .. p >

, Shape Circle Square, double get_radius() const: throw NaN -1, Square - .

, , , , , , , , , relaxxx, , , "" ....

+2
source

An interface with more methods or friends than is really necessary.

+1
source

Source: https://habr.com/ru/post/1679300/


All Articles