What are the basic modules, what information needs to be passed between those modules in order to make the code work.
基本的模块是哪些,为了让整个程序正常运行,这些模块之间需要传递的信息有哪些。
Usually when you know why it's not working, it's obvious what you have to do to make it work.
通常你明白了出错的原因后,很明显你必须让程序正常运行起来。
And you'll see at the bottom, bug it says the first actual case of a bug being found.
然后程序就正常工作了,因此这就是第一个被发现的。
Where we put our whole program together, and we say does the whole thing work?
也就是把我们的整个程序组合起来,然后看看它们在一起能不能正常运行?
So we can feel pretty comfortable that it's doing something good with that.
所以我们感觉很棒,程序工作正常。
That's usually a big mistake.
因为通常来讲这样的程序不会正常运行的。
Why our programs don't work.
为什么我们的程序不能正常运行呢?
The beauty of this is, it keeps me from getting lazy, and not only testing my program and the thing that found the bug, but in all the things that used to work.
运行函数而不用再输入了,这其中的,美妙之处在于,它让我变的勤快了点,并不是仅仅的去测试程序发现bug方面,同样适用于那些正常工作的模块。
What value of inputs, what values of x will this run correctly for?
这个程序正常运行的话对于输入的值,也就是x的值,有什么要求呢?
Because maybe the program worked on some inputs and not on others.
一次如果理解了程序为什么,能对a正常运行而对b却不能你就会。
应用推荐