知识卡片

普通读书笔记卡 · 1841.j

重构与重构架构有别

理解等级:高级

代码重构保持外部行为不变;架构重组往往改变结构、运行特征与优先级。把事件驱动换成另一风格可能改变伸缩性,因此不能沿用“只是内部整理”的风险假设。迁移前应说明哪些行为必须保持、哪些特征有意变化,并分别验证。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building Evolvable Architectures · 查看原书依据

      Developers sometimes co-opt terms that sound cool and make them into broader synonyms, as is the case for refactoring. As defined by Martin Fowler, refactoring is the process of restructuring existing computer code without changing its external behavior. For many developers, refactoring has become synonymous with change, but there are key differences.

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第07章《Building Evolvable Architectures》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch07.html;段落定位:refactoring is the process of restructuring existing computer code) - 结论依据:原文对“重构与重构架构有别”的定义或案例,支撑“代码重构保持外部行为不变;架构重组往往改变结构、运行特征与优先级”的归纳。据其上下文,把事件驱动换成另一风格可能改变伸缩性,因此不能沿用“只是内部整理”的风险假设。 - 原始内容:Developers sometimes co-opt terms that sound cool and make them into broader synonyms, as is the case for refactoring. As defined by Martin Fowler, refactoring is the process of restructuring existing computer code without changing its external behavior. For many developers, refactoring has become synonymous with change, but there are key differences.