Jump to content

Interface bloat

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 2001:7d0:4982:1a80:79f4:4ea:8de0:39c3 (talk) at 13:53, 2 February 2018 (computer interface is not the term used in the industry and would be easily confused with an input device or a user interface, even "software interface" is confusing.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In software design, interface bloat (also called fat interfaces by Bjarne Stroustrup and Refused Bequests by Martin Fowler) is when a interface incorporates too many operations on some data into an interface, only to find that most of the objects cannot perform the given operations.

Interface bloat is an example of an anti-pattern. One might consider using visitor pattern, Adapter Pattern, or interface segregation instead.