当然,没必要把每个用例都跑一遍来确保代码工作正常。
Certainly it is not necessary to run every example to be sure that the code works.
Linux设备驱动程序,是通过专门与硬件打交道的内核代码工作的。
Linux device drivers work through special kernel code that directly accesses the hardware.
通过查看图14中的“控制台”窗口,可以确认映射代码工作正常,因为对职员姓氏的修改已经正确地持久化到了数据库中。
By looking at the "Console" window in Figure 14, you can confirm that the mapping code is working properly, as the change to the employee last name is correctly persisted to the database.
In general, good programming style says you put in comments that are going to be valuable in helping you as a reader understand what's going on inside of the code.
通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。
Important lesson, so that there would be some predictability in the results and I would have some, if you will, smoke test for knowing whether or not I was getting, my code seemed to be working.
这很重要,因为这样我就可以预测,结果会是多少了,如果你愿意,我们可以做烟气试验,来看我的代码是否工作正常。
应用推荐