Now I want to contrast that with what we see from Nabokov in this essay, Good Readers and Good Writers.
现在我要把这和《好读者和好作者》这篇文章中,纳博科夫的观点做下比较。
And our goal is then to basically see how we can build systems that take advantage of that modularity.
方法优点的系统,好,那么最基本的思想,就是,我想要把信息放在一起,我想要把应该。
And then maybe I raise the temperature to whatever, room temperature, maybe 20 degrees hotter than room temperature. And I again say OK, now how much heat do I need to raise this thing's temperature by 1 degree?
我可能把温度升到,比如室温,或者比室温高20度之类,然后我再说,好,现在要把这个东西的温度,升高一度需要多少热量?
That didn't happen to me -- once I got into the lab, I didn't want to leave. So, I thought, "You know what, I think I'll change the medical school plans and now I'm going to go all the way -- chemistry major, chemistry grad school."
这很好,但我不是这样,我一进入到实验室就不想离开了,所以我想“你知道吗,我想把我学习医学的计划改成化学-,我要学化学专业,读化学研究生“
Yes, in back Yes Student: Dancing bears Professor Paul Bloom: Dancing bears Okay I got to write your name down-- ... report you to health - No Dancing bears, very good ? Anybody else?
好,后面那一位,跳舞的熊,跳舞的熊,好吧,我要记下你的名字-,把你汇报给精神健康,开玩笑,跳舞的熊,非常好,还有吗?
OK. Now, having done that, again I want to stress this idea and I'm going to write it out one more time, that there's a particular format here.
好,讲完了这些,我又想要强调一下这个思想,并且再一次把它写出来了,就是有一个特定的格式。
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
OK, but before I do that, let me drive home this idea of why this is a recipe.
好了,但是在我做那个之前,我们要把这个想法拉回到,“为什么这是个方法“这个问题上来。
Right, so the things we want you to take away from this are, get into the habit of using pseudo code when you sit down to start a problem, write out what are the steps.
好,这儿我想大家明白的就是,养成解决问题时先写伪代码的好习惯,把步骤都写出来,我想要告诉你们的是一个好的程序员。
You'll see why I'm going to make that distinction in a couple of lectures.
为什么我要把这个区分开来,好,那么这跟我的除数例子有什么关系呢?
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
All right. I'm going to uncomment that.
好,我要把这里去掉注释。
And in fact, if we just go ahead and run this now, hopefully we get out-- oops, sorry, I'm going to have to change this quickly, I still have some things uncommented at the bottom, yeah, there they are, I don't think we need that yet, all right, we will comment those out.
如果我们现在去运行程序的话,希望我们会得到-噢,抱歉,我得去马上,改下代码,还有一些在底部的东西没被注释掉,对,就在这儿了,我不认为我们需要,这些东西了,好,我们把它们注释掉,好,那么我为什么要讲这些呢?
应用推荐