Now I got one just simple thing, and I simply have isolated that module inside of that function.What about abstraction?
而现在我只要做一件简单的事,那就是我只需把这个模块,加到函数中去?
and they put a very simple idea forward, it captures my attention and I continue thinking about it.
他们提出一个很简单的想法,吸引了我的注意力,让我一直思考着它。
HBr So for example, if I want to look at HBr there's a simple case, right, hydrogen bromine.
如果我想研究,这是个简单的例子,溴化氢。
And they're awfully simple because, all I can do now, is decide whether to execute some piece of code or another.
它们之所以太简单的原因是:,现在我能做的,就是,决定执行一块代码或者执行另外一块。
It's very simple. It's this: if I know what I'm doing, it is almost inevitably the case that you would know also.
实际上十分简单:,如果我知道我创作的是什么,那么你很可能也知道我创作的内涵。
It's a simple problem, but I just want to do it so you get used to working with vectors.
这是个简单的问题,但我还是想做一下好让你们习惯矢量运算
I'm going to generalize from our simple story even more by saying that, let's not assume that we have equally-weighted.
我要将我们刚才的简单特例,变得更普遍适用一些,现在我们假设这两项资产的权重并不相等。
He didn't actually convince me of that, but suppose we thought souls are simple, and we think simple things can't split.
他并没有说服我,但让我们假设灵魂就是简单的,并且简单的东西无法被分裂。
So this, too, fairly straightforward and yet and this was a socially awkward moment I had to ask her are you an adult or a senior?
这个也相当简单,这是一个社会尴尬的时候,我必须问她是一张成人票还是老人票?
The other thing that's on this slide here is sort of a simple analogy that I've already described.
这张幻灯片上的其它东西,是一个简单的类比,我已经讲过了
I do not think we can believe that simple story as it stands.
我并不认为,这个简单的故事真能站得住脚
I mean I'm hoping that was a simple exercise.
我的意思是说我希望这只是个简单案例
this court is attributed to him, not 100% sure it's his-- said, "I would not give a fig for the simplicity on this side of complexity, " but I would give my life for the simplicity on the other side of complexity."
这个报告厅就是他捐建的,但不能完全确定是他所有的--说过,“我不会认为与复杂性一致的简单性是微不足道的,但我会把我的一生用来研究与复杂性相对的简单性“
You've got to squeeze absolutely everything out of it, and so it was ideal from the standpoint of teaching and was, it seems to me, also wonderfully galvanizing intellectually because it really did make people think: "look how intricate what I thought was simple turns out to be."
你得完完全全把东西都挤干净了,正因如此,从教学本身的立场来看,这就是理想状态了,而在我看来,它能使人如醍醐灌顶,因为它真的在引导人们思考:,“我想象得很复杂的东西原来是这么简单的一回事儿啊!“
I also like computer programs that are simply in that language and seeing the item.
我也喜欢简单运用那种语言的电脑程序,而且你可以很容易地看到各个条目。
If I want to create a set or a sequence representing these things, I simply insert into that list.
如果我想创建一个集合,或者一个序列表示这些东西,我只要简单的把它插入列表中。
I know it looks like a simple and silly little example, but at the moment, I still have the ability to go in and change the values of the parameters by that little definition.
很简单的有点儿蠢的例子,但是现在,我还是可以通过,一个简单的定义声明,来进去改变参数的值,这样就没意义了,这是因为我并没有用一些。
Now, what did I want to do? I wanted to check membership. I want to do search. Well that's simple. Given that representation and some value, I just say gee is it there?
现在,我需要做什么?,我要做成员检查,我要做查找,这就很简单了,给了即定的表示和一些值,我只需要说喂在那儿吗?
I know this is a simple example, but when you mature as a programmer, one of the first things you should do when you sit down to tackle some problem is write something like this pseudo code.
我知道这是个很简单的例子,但是当你们成长为一名程序员后,当你们碰到问题后第一件事情就是,该写一些类似于,伪代码的东西。
It's simpler, more straightforward to say instead, "What I am strictly speaking is a soul."
简单点儿,更直白地说,我严格的说起来就是个灵魂而已
I know it sounds simple, but notice what I just did.
我知道这听上去很简单,但是注意我刚才所说的内容。
I'm going to simply write a description of what do I want to do.
我将会对我接下来将,要做的做一个简单的陈述。
So all we're doing here is the most quick and superficial glance.
所以对它们我现在只做一个,最简单,最浅层次的分析
Let me illustrate the point with some very, very simple graphs.
让我用一些非常非常简单的图表,阐明这个观点。
So I'm going to run through a series of these arguments.
我先简单地说一下,这一系列的论证
Remember last time, I said that there's different kinds of complexity in our code, and I suggested for simple branching programs, the amount of time it takes to run that program is, in essence, bounded by the number of instructions, because you only execute each instruction at most once.
但是这里有个很重要的点,记得上节课,我提过在我们的代码中,有不同种类的复杂度,而且我还说了对于简单的分支程序,运行这种程序需要的总体时间,大体上,是和指令的数目相关的,因为每个指令只会被执行最多一次。
My jokes are that bad. Wow-- All right.
我任务最简单的放来来看它。
I want to just say it in the simplest possible terms.
我尽量用最简单的术语来解释。
I use simple advisedly here.
我是故意在这里用简单这个词的。
What we're really getting at is the idea of saying I want to have a way of grouping together information into units that make sense. So I can go back to one of those topics we had at the beginning, which is the idea of abstraction, that I can create one of those units as a simple entity, bury away the details and write really modular code.
组合成为有意义的单元,那么这就让我们回到,一开始讲的话题之一了,这就是抽象的概念,也就是我可以以一个简单的,实体的形式创建这样的一个单元,把具体实现隐藏然后写一些,真正模块化的代码,我们在以后的课程中。
应用推荐