知识卡片
错误抽象可比重复更难更改
尚未看清共同职责时,强建通用层可能使后续变化受制于错误结构和沉没成本。先采用简单可理解方案并持续观察,发现稳定共性再抽象;这不是允许永远忽略明确重复与设计。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 重构与技术债
原书出处 · 1 处
- · 查看原书依据
Avoid premature abstraction In my (David Tan’s) career, I’ve probably watched more than 100 conference talks, but probably only five have stayed etched in my mind. One of them is Sandi Metz’ talk where she demonstrates the pitfalls of premature abstraction. She articulates this well in her article “The Wrong Abstraction” when she writes: “Existing code exerts a powerful influence. Its very presence argues that
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第08章《重构与技术债》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch08.html)
- 结论依据:摘录中关于错误抽象可比重复更难更改的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Avoid premature abstraction In my (David Tan’s) career, I’ve probably watched more than 100 conference talks, but probably only five have stayed etched in my mind. One of them is Sandi Metz’ talk where she demonstrates the pitfalls of premature abstraction. She articulates this well in her article “The Wrong Abstraction” when she writes: “Existing code exerts a powerful influence. Its very presence argues that