知识卡片
行为保护支持渐进重构
重构改变内部结构以提高可读和可演进性,同时应保持所需外部行为。自动测试、编辑器支持和合理工作负载共同降低回归风险;热力学熵增只是比喻,不是代码必然劣化的物理证明。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Refactoring The second law of thermodynamics tells us that the universe tends toward disorder, or entropy. Our codebases—ML or otherwise—are no exception. With every “quick hack” and every feature delivered without conscious effort to minimize entropy, the codebase grows more convoluted and brittle. This makes the code increasingly hard to understand and, consequently, modifying code becomes painful and error-prone. ML projects that lack automated tests
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第01章《机器学习交付的挑战与路径》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch01.html)
- 结论依据:摘录中关于行为保护支持渐进重构的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Refactoring The second law of thermodynamics tells us that the universe tends toward disorder, or entropy. Our codebases—ML or otherwise—are no exception. With every “quick hack” and every feature delivered without conscious effort to minimize entropy, the codebase grows more convoluted and brittle. This makes the code increasingly hard to understand and, consequently, modifying code becomes painful and error-prone. ML projects that lack automated tests