So, let's see this eraser actually never works very well so I'm just going to draw below it.
这个清除器不能很好地运行,我将在下面画出它。
So if your word game doesn't work when the words are 12 letters long, instead of continuing to debug 12 letter hands see if you can make it fail on a three letter hand.
因此如果你的单词游戏当输入单词,有12个字母的时候没法运行了,看看输入三个字母的单词它,能不能正常运行吧。
Where we put our whole program together, and we say does the whole thing work?
也就是把我们的整个程序组合起来,然后看看它们在一起能不能正常运行?
Not just the one where it didn't work, but also the ones where it did.
因为可能程序对一些输入可以,正确运行但对另外一些却不能。
Now, efficiency is obviously an important consideration when you're designing code, although I have to admit, at least for me, I usually want to at least start initially with code that works, and then worry about how I might go back and come up with more efficient implementation.
现在,当你设计程序的时候效率,是不得不考虑的问题,虽然我必须承认,至少对我来说,我是先担心程序能不能运行,再去把它的效率优化的,我喜欢可靠点的东西。
However many quotes I need.
来看看这个程序能不能运行。
It was a complicated program.
但是程序不能成功运行。
Why our programs don't work.
为什么我们的程序不能正常运行呢?
Because maybe the program worked on some inputs and not on others.
一次如果理解了程序为什么,能对a正常运行而对b却不能你就会。
应用推荐