leaky abstraction
名词 n.
英文释义
名词 n.
-
An abstraction that undesirably exposes details and limitations of its underlying implementation.
— This is a classic case of leaky abstraction. Repository is supposed to abstract away any concerns around querying the database, but now what we are doing here is returning an IQueryable<T> to the consuming code and asking it to build the queries, thus leaking the abstraction that is supposed to be hidden into repository.
词形变化
词源
Popularised in 2002 by software engineer Joel Spolsky.
0 次浏览
数据来源: Wiktionary