And that's exactly one of the reasons why I want to have the functions, because I've separated those out.
这就是创建方法的原因,只是因为我把,实现和使用分离了。
Where on the picture, let me do a bit more cold calling here, where on the picture maximizes total industry profits?
我随便找个同学来回答一下,在图上哪一点实现了行业最大利润
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 I think it made a marginal but real contribution to the possibility of normalization of relations there.
我觉得我们的贡献不大,但实实在在,帮助实现了两国的重新建交。
It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
And secondly, if I'm successful in my teaching I will accomplish this second aim here.
第二,如果我的教学目的达到了,我就会实现第二个目标
In class, I left here your ideas about how we here MIT may help in data free.
在课堂上,我留下了一个想法,那就是MIT怎样帮助实现数据免费。
So by the time it came, more like, by the time I came to meet this random project that was pretty well change where it's making that, you know In terms of managing this whole process, nothing.
因此,当创造Facebook的念头产生的时候,我已经准备充分并且能够实现它了,但我从未想过关于规划整个过程的事。
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
I've used some abstraction to suppress some details here.
我用了抽象的方法,来隐藏了一些具体的实现。
Well, it looks like I just stole my own implementation Y but I happen to call it A and B, instead of X and Y, and so here, what's going on?
嗯,看起来我刚好像盗用了我自己的实现,我碰巧叫它为A和B,代替X和,这里,发生了什么事?
So I sat down over the course of a week Shuttleboy and implement what I probably shouldn't have called Shuttleboy at the time ' cause this jargon has lived on.
因此我认真思索了这个课题一周,我们实现了,或许不该这么叫的,因为’,这个术语当时已经存在了。
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
应用推荐