请输入您要查询的百科知识:

 

词条 Interface bloat
释义 {{multiple issues|{{unreferenced|date=March 2009}}{{context|date=April 2016}}
}}

In software design, interface bloat (also called fat interfaces by Bjarne Stroustrup and [https://web.archive.org/web/20061111183244/http://foozle.berkeley.edu/projects/streek/agile/bad-smells-in-code.html 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.

{{soft-eng-stub}}

3 : Anti-patterns|Computer programming folklore|Software engineering folklore

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 8:35:59