首页> 外文期刊>Software Development >Managing That Millstone
【24h】

Managing That Millstone

机译:管理那个磨石

获取原文
获取原文并翻译 | 示例
           

摘要

Legacy code is often used as slang for murky, difficult-to-change code. But to me, legacy code is simply code without tests. Whether you want faster performance, more features or manageability, the key is simple: instantaneous feedback via tests. Changes in a system can be made in two primary ways. I like to call them Edit and Pray and Cover and Modify. Unfortunately, Edit and Pray is pretty much the industry standard. When you use Edit and Pray, you carefully plan the changes you are going to make, you make sure that you understand the code you are going to modify, and then you start to make the changes. When you're done, you run the system to see if the change was enabled, and then you poke around further to make sure that you didn't break anything. The poking around is essential. When you make your changes, you are hoping and praying that you'll get them right, and you take extra time when you are done to make sure that you did.
机译:传统代码通常用作for语,难以更改的代码的语。但是对我来说,遗留代码就是没有测试的代码。无论您想要更快的性能,更多的功能还是可管理性,关键很简单:通过测试即时反馈。系统的更改可以通过两种主要方式进行。我喜欢称它们为“编辑,祈祷,封面和修改”。不幸的是,Edit and Pray几乎是行业标准。当您使用“编辑并祈祷”时,您会仔细计划要进行的更改,请确保您了解要修改的代码,然后开始进行更改。完成后,您将运行系统以查看是否启用了更改,然后进一步检查以确保未破坏任何内容。戳戳是必不可少的。当您进行更改时,您希望并为他们所做的正确祈祷,并且在完成操作时会花费额外的时间来确保所做的工作。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号