And if they can't answer that question, I say well, before you even run it, have an answer to that.
如果他们没法回答这个问题的话,我会说好吧,在你运行实验之前,先回答这个问题吧。
And I'm going to pause for a minute, before I run it, and ask each of you to compute in your head what you think the answer should be.
我将暂停一会儿,在我运行之前,我想问问你们你们,心算得出的答案应该是什么。
I can tell you the answer, but that's because I've cheated, run the program before.
我可以告诉你答案,但这是因为我作弊了,我之前运行过一次程序。
So before I try and run my program, I test each part of it independently.
因此在我尝试运行我的程序之前,我都会对它的每个部分进行独立的测试。
And that does two things: bug one, it helps catch bugs in your code, and secondly it often converts it into a more efficient sequence of instructions before you actually go off and run it. All right?
这有两点好处:,第一是可以帮助你发现程序中的,第二是把你的代码,在运行之前,转换为更有效率的指令的集合,对不对?
Always guess before you run your program what you think it's going to do.
当你运行程序之前,总是先想想程序会怎么做。
应用推荐