反模式:在软件工程(尤其是架构与设计)中,指一种看似能解决问题、实际却会带来更多负面后果的常见做法或“坏习惯”。(也可用于更广义的工作流程/管理场景。)
/ˌæntiˈpætərn/
Using a global variable everywhere is an anti-pattern.
到处使用全局变量是一种反模式。
Although the shortcut seemed efficient at first, it became an anti-pattern that made the codebase fragile and hard to maintain.
虽然这个捷径一开始看起来很高效,但它后来成了让代码库脆弱、难以维护的反模式。
anti- 表示“反对、相反”,pattern 表示“模式”。“anti-pattern”是相对“design pattern(设计模式)”提出的术语,用来概括那些在实践中反复出现、但结果往往有害的“常见错误方案”。