And I'm sure you don't remember, but one of the things I had in my recipe, is beat egg whites until stiff. OK.
我相信你们不记得了,但是我说过我食谱中的一件事情是,搅拌蛋清直到变浓稠,好。
Notice the difference. The recipe, the sequence of instructions, is actually getting read in, and it's treated just like data.
注意其中的差别,方法,也就是指令序列,其实是需要读的,被当做数据来对待。
It sounds like a pretty nice recipe for making a lot of money.
这听起来是个不错的赚钱方法
OK, but before I do that, let me drive home this idea of why this is a recipe.
好了,但是在我做那个之前,我们要把这个想法拉回到,“为什么这是个方法“这个问题上来。
A traditional recipe actually is based on a small set of primitives, and a good chef with, or good cook, I should say, with that set of primitives, can create an unbounded number of great dishes.
一个传统的菜谱实际上是,建立在一小堆的原材料,和一个好厨师,或者好厨子之上的,我要说,根据那堆原材料,可以创造出无数的美味佳肴来。
And inside of the machine, and things we'll talk about, there is a process that will allow that sequence to be executed as described in that recipe, so it can behave like any thing that I can describe in one of those recipes.
在机器里面,还有我们要说的,里面有一个我们允许的,在方法中描述的,将要被执行的序列的过程,因此它可以像我在方法之中,描述的任意一种那样来表现。
Well, I'm going to do the same analogy to a real recipe. So, real recipe.
好吧,我要做一个,真正方法的类比,因此,真正的方法。
Suppose instead, I want a machine that can take a recipe, the description of a sequence of steps, take that as its input, and then that machine will now act like what is described in that recipe.
假设换成这个,我想要一台可以安装描述,一系列步骤的结果的方法的机器,把那个当做输入设备,然后那台机器可以像方法中,描述的那样运行了。
Okay, right, so if you're actually making food and you're creating some of a recipe then it's very difficult to know exactly the portions that go in when you eat the final food product that comes from it, so that's right. How many of you--go ahead.
对的,所以如果你自己做饭,你会有自己的一套食谱,你很难了解最后的成品中,原成分的精确含量了,所以就是那样,有多少人,你说
应用推荐