I'd like to close with a short story of recent interaction that I had with a video over the internet.
我想用一个小故事来结束,是最近我关于网络视频的互动作用。
who I'm no longer living in the same area as or use it to kind of make plans with some friends.
联系那些和我不住在一个地方的朋友或用它和一些朋友们定定计划。
Instead if we want this pointer to represent the address of something in as much as it points at that address let's just draw an arrow.
如果我们想要让这个指针表示,数据的地址,它指向的地址,我用一个箭头表示。
So let me turn to a different approach to solving the question, answering the question,which one should we believe?
所以让我用另一个方法来解决这个问题,回答该相信哪一个理论的问题?
With some degree of confidence, I'm working with a reliable spring and then I will get the mass of the elephant.
这时我就对弹簧有信心了,我用的是一个可靠的弹簧,我能测出大象的质量
I speak in a figurative way about the relationship between the earth and the sky, and I believe that there's a sky god.
我用一种修辞法,来说天地关系,我相信有一个天神。
So, here are at least three examples of canceled children, and you can use that phrase, I think, to characterize Lolita. She is a canceled child.
那么,这里至少有三个被忽视的孩子的形象,我想你们,也会用这个词去描述洛丽塔,她也是一个被忽视的孩子。
What have we done? We've now got a way of collecting things together, right? And this is the first version of something we'd like to use.
用的一些东西的,第一个版本,现在我已经把它和,一个名字进行了绑定。
Now what I want to do is take you exactly to this place where we are right now, where we see energy levels and electron filling, but I want to start all over again and I want to use a totally different approach.
现在我想做的是带你们,到达我们现在所处的地方,我们能看到能量级和电子分布的地方,但我想重新开始,而且用一个完全不同的方法。
And what we find, the first example of a Bronze Age-- and I use the word civilization now for the first time, because before the Bronze Age-- there is nothing that we would define as civilization.
我们发现的第一个文明出现在青铜时代,也是我第一次用文明这个词,因为在青铜时代之前,没有任何东西能称之为文明
It's hard to describe such a big neighborhood in one sentence.
我很难用一句话来描述这么大的一个社区。
I wanted to show an example with real data that I computed and that's what's up on the screen.
我用真实的数据做了一个案例,请看上方的屏幕。
If you're writing a one line function, whose sole purpose in life is addition, and, clearly, this is about addition, well, then it's, in fact, A reasonable to use a shorter symbol like A, but I do have to specify it's type.
如果你在写一个一行的函数,它唯一的目的是,做加法,显然这是关于加法的,好的,实际上,用一个短的标识符是合理的,像,但是我必须指明它的类型。
So to use an analogy that I think that David Kaplan, a philosopher of UCLA offers you've to think it more like a bologna or salami that you can slice.
这里我用一个类比,我想是加州大学哲学家大卫提出的,你要想象成一条大腊肠或者香肠,你可以切分的。
Here I got 3 kg and I got 2 kg and I'm pushing with 10 Newtons and I want to know what happens.
一个物体 3 千克,另一个 2 千克,现在我用 10 牛的力推它,我想知道接下来会怎样
And we can just extrapolate in a straight line We before saw some examples where I had an algorithm to generate points, and we fit a curve to it, used the curve to predict future points and discovered it was nowhere close.
我们可以干脆用一条直线来描述它,我们之前看到在一些例子中,我用一个算法去生成一些点,然后用一条曲线对它进行拟合,然后用这条曲线来预测未来的点,最后却发现结果完全不对。
Not so easy to see. All right, but this is actually a great one of those educational moments. This is a great example to think recursively. If I wanted to think about this problem recursively- what do I mean by thinking recursively?
看不太出来,好,但实际上是一个有教育意义的时刻,这是一个很好的关于递归的例子,如果我用递归的思想,去考虑这个问题-,我该怎么用递归去解决这个问题呢?
But I want to start in every example, in every situation that I explain to you, with the simplest example, and slowly add on things.
所以我会都从最简单的例子讲起,在我给你们解释的每一个例子里,都会用最简单的例子,然后慢慢增加难度
I've added the ability to have more complex data structures here. But I dropped a hint in the first lecture about what you could computer with things. In fact if you think for a second about that list, you could ask what can I compute with just that set of constructs?
我添加了使用更复杂的数据结构的能力,但是我在第一节课给大家了了一个,关于你可以用什么来做计算的暗示,实际上如果你思考,这个列表一会儿的话,你会问我可以用?
So there we have, I'll create a GUI interface using Visual Basic, see if I can track an IP address.
好了,我用VB创建一个,图形用户界面,看是否可以跟踪IP地址。
Let me draw a quick picture in chalk here.
我用粉笔画一个简单的图。
I want to derive the last result in another way, then I will stop, and that's pretty interesting because it tells you the use and abuse of calculus.
让我用其他方法解答最后一个问题,然后今天就到这 这是一个挺有意思的题,因为它展示了微积分的正确用法和错误用法
So, just give me a little bit of time to find out maybe by soliciting e-mail responses from you what would be a good time for my office hours.
所以,给我点时间考虑一下,或许我会用电子邮件发一个小问卷调查,然后我来决定什么时间最合适
I think it's wonderful because it "pulls up" just like Gadamer being "pulled up short," and there is, it seems to me, there's another crisis of expectation in this line in that especially as a toddler I need to negotiate that expression idiomatically.
我认为这非常好,因为“停下来“就像葛达玛的,“突然停下“一样,而依我看来,这里有另一个,期望危机,在这句话中,因为,特别是作为一个小孩,我需要用习惯性的表达法。
And what it's saying semantically is, using that variable as my placeholder, have it walk through this collection, starting at the first thing, execute that code, then the next thing, execute that code, and so on.
它的语义意思就是,把这个变量应用为我的占位符,用它来遍历这个集合,从第一个元素开始,执行代码,然后下一个元素,再执行代码。
And if the best that the soul theorist has is, "Maybe we need this to explain something that I don't see how you guys can explain, maybe this would help, though I can't quite see how either," that's not a very compelling argument.
如果灵魂主义者最为充分的理由是,或许我们需要灵魂来解释些,我认为你们不能解释的东西,或许这样能有些帮助,尽管我也不清楚怎样用灵魂解释,这就不是一个很有说服力的论证
So STR, which I just typed up there, takes in parens, some input, and it converts it into a string, so that now I can use that John where I was expecting a string. John.
因此STR,也就是,我刚刚输入的,然后把这个输入变更为一个字符串,因此现在我就能,在需要用字符串的地方使用这个对象了。
Notice in the class definition here, is there, this is the first thing that's got called, and I just called with the value for x and the value for y, and it went off and did something for me.
就在这里,这是第一个被调用的东西,我用x的值和y的值调用了它,然后这个方法继续进行,并为了做了一些操作。
But long story short, if I want to use a function called sleep, -- the reason I, the programmer, knew to use that library -- -- that header at the top -- because it told me to in this little synopsis.
但长话短说,如果我想要用一个叫做sleep的功能,我作为程序员知道使用那个函数库-,上面的标题-,因为在这个小的大纲中它告诉我。
And so the fact that in this whole slide here, this algorithm for sorting, I'm using the verb sort.
在这个排序算法中,我用到了一个动词排序。
应用推荐