他们清楚地看到自己想要的结果,然后一遍又一遍地预演。
They see the result they want clearly and rehearse it over and over again.
计算机程序能否做到这一点是存在疑问的,至少,它一定会带来一些人们不想要的结果。
It's doubtful that a computer program can do that—at least, not without some undesirable results.
你必须置身其中,这就是我们想要的结果。
And check the answers, and say yeah that's what we expected. But it also involves reasoning. About why that's an appropriate set of inputs to test it on it.
然后说对,这就是我想要的结果,但是它跟推理也有关系,表现在关于为什么这是一个,测试我们程序的适合的输入集。
OK, so what have I done? I just added a little bit more now. I'm now running through a pair of loops. Again notice the encapsulation, that nice abstraction going on, which is what I want. Once I get to this stage though by the way, there might be more than one solution.
我现在运行了一对循环,再一次注意这个封装,抽象得很好,这就是我想要的结果,我按这种方式走到这一步的时候,可能会有多组答案。
But I would choose to sit down for these particular projects right around midnight so that when I woke up my program was giving me the results I wanted.
我可能会,为了这些特殊的项目一直等到半夜,这样我醒来时,程序就能给我想要的结果。
应用推荐