Because that's life in computing.
这并不像一个数学问题集。
For instance in the past, we had that silly little program for computing the average of some quizzes and it was actually a pretty bad implementation because I had essentially hard coded in the number of quizzes.
比如在以前,我们做了一个,计算平均数的程序,这是一个相当挫的实现,因为我硬编码了测试的数字。
And so the program may do different things on different runs. We'll see a lot of that, because it's used a lot in modern computing.
因此程序会对不同的输入做不同的操作,我们会看到很多这样的情况,因为它在现代计算中被广泛应用。
And I currently direct in the interdisplinary research center, called the center for educational computing initiatives.
目前我指导着一个跨学科的,研究中心,叫做,教育主动性计算机研究中心。
Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.
比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。
应用推荐