不管您想要的工具或偏爱的方法是什么,重要的是:行动起来去积极改进代码质量并让手工代码检验的过程变得更加有效。
Regardless of your desired tool or preferred measure, it's important to take action to improve code actively and make your manual code review process more efficient.
该系统根据数控车削加工的特点实现了数控源程序编辑、代码检验解释、加工过程仿真等功能,在计算机上实现了数控车削编程和仿真加工的全过程。
This system can realize editing of CNC codes, explaining of program codes, and simulation of cutting process. CNC programming and simulation are done completely by the computer.
基本测试应该包括对检验代码和断言以及数据库操作(比如创建、读取、更新和删除,CRUD)的测试。
Basic tests should include the testing of validation code and assertions, and database operations such as Create, Read, Update and Delete (CRUD).
I spotted an error here, I could have spotted it by running it on different test sets, and using prints things, another way of doing it, but this idea of at least simulating it on simple examples lets you check a couple of important questions.
操作么?我在这里发现了一个错误,我也可以通过运行不同的测试集,或者运用print声明来发现这个错误,但是至少应该用简单的例子来手工模拟下,代码的思想可以让你,对一些很重要的问题进行检验。
应用推荐