First one, when I write a piece of code, especially code that has branches in it, when I design test cases for that piece of code, I should try and have a specific test case for each possible path through the code.
第一点,当我们写代码的时候,尤其是一些含有分支语句的代码的时候,当我为这些代码,设计测试用例的时候,我应该为每一个可能的程序路径,都设计一个特别的用例。
Then he had a machine that granted each pigeon one piece of corn every fifteen seconds; that's very, frustratingly slow for a hungry pigeon to get one piece every fifteen seconds.
他们设计了一个能保证,每隔15秒给鸽子喂一玉米粒的装置,对饥饿的鸽子来说是杯水车薪,每15秒才只有一粒玉米
And similarly, particularly for those less comfortable, do we offer prior to the start of each week for a new piece at what we dub a walkthrough whereby one of the teaching fellows will literally start on the first page, give you a mental framework for the week's problems and talk about the ideas that it covers, and then walk through the piece set so that you have a roadmap of sorts that you can follow.
同样,特别对于那些不熟悉编程跟不上进度的同学,每周上课前都可以预习新的知识点,一名教师从第一页开始,对于每周的问题,都给你们简历一个心理框架,并讨论它所涵盖的思想,然后了解了每个部分之后,就可以有个学习的路线图。
应用推荐