知识卡片

普通读书笔记卡 · 3342

反模式伪装成解法

理解等级:中级

反模式是反复出现、表面像解法却使问题恶化的做法。识别它时,要比较做法原本想解决什么、实际引入了何种耦合或技术债;不能仅因形式不符合偏好的模式就贴标签。明确反模式还有助于寻找与问题情境更匹配的替代方案。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第1章《What’s Wrong with Monoliths?》(源文件:`_epub-src/OPS/ch01.xhtml`,归一化正文 [16591:20775)) - 结论依据:原文直接给出反模式的定义,强调它外表像解法但会使问题变糟,并指出界定反模式可帮助寻找更好的模式。 - 原始内容:An antipattern is just like a pattern, except that instead of a solution, it gives something that looks superficially like a solution but isn’t one. Like design patterns, anti-patterns are commonly encountered ways of approaching a problem that clearly make the problem worse. Anti-patterns lead to technical debt and further unnecessary complexity when tackling problems.