I mean, so that's kind of an interesting problem and then it's something that I don't really kind of get inside for you guys.
这是一个很有趣的问题,其中的奥妙,一时也无法道出。
OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.
好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。
It's very water soluble and it's a big molecule, a very big molecule; it can't naturally get inside cells on its own.
它是一个水溶性极强的大分子,非常非常大的分子,质粒在自然状态下并不能自己进入细胞
It's also the opportunity that new companies have, because they don't have the stuff that gets built up inside companies.
同时也是新公司的机遇,因为新公司的一切,都未成型。
When I said in Week One that you don't actually have zeros and ones inside this header file; right?
在第一周我说过的,我们在这个头文件中,是没有二进制的,是吗?
Because if it's irreversible, it's very likely that I don't know what the pressure inside the system is doing while this is happening.
因为对不可逆过程,系统内部的压强,没有明确的定义,气体不处于平衡态。
Since I say you can believe you're going to die, yet you can't picture it from the inside.
既然我说你可以相信人是会死的,但是你无法想象那种感受。
I'm using the fact that when you take a cosine and change the angle inside the cosine, it doesn't care. whereas, if you go to the sine and change the angle inside the sine, it becomes minus sine.
我用了一个结论,当你使用余弦函数时,改变角度的正负,函数值不变,而对于正弦函数,改变角度的符号,则函数值也会变号
Taking foreign genes, genes that aren't naturally expressed or might not even exist inside a cell and putting them there and putting them there in a way where they work, and by work meaning the gene gets expressed or translated into a protein.
将异源基因,即那些在细胞中原本不表达或者,根本不存在的基因转入细胞并让它们工作,工作就是指让基因持续表达并合成蛋白质
Well if I-- you know, with let me say it differently. I don't need to worry about how checking is done, it's handled inside of that function.
好,如果你们知道,抱歉,让我们换种说法,我不必担心检查工作,是则会么做的,这是在方法体内部进行的。
You put some inputs in, it has a contract that says if you put the right kind of inputs in you'll get a specific output coming out, but you don't have to know what's inside of that box.
你可以将输入一些内容,它相当于一个条件合约,如果你的输入是正确的,你就能得到特定的输出,但是你不知道盒子里面有些什么。
I can be a little more careful about keeping track of what goes on inside of that loop. If I don't have any more work to do, let me just stop.
我能更小心点来跟,踪循环里发生了什么,如果没什么可干的了,就停下来吧。
Interestingly,and somewhat more surprisingly, looking at it from the inside,we won't be able to tell either.
很有趣地,同时也很让人惊讶地,从内部设身处地观察,我们也找不出答案。
They can't always neutralize viruses because the viruses are predominantly inside cells.
抗体不是总能中和病毒,因为病毒主要在细胞中
From the mere fact that they can't picture it from the inside, it doesn't follow that nobody believes they're ever in dreamless sleep.
仅从他们无法设身处地,想象这种情况这个事实,是无法得出没有人相信,自己能处于无梦睡眠的结论的。
I want to just use it, I shouldn't have to worry about what variables I use inside of it, I have shouldn't have to worry about where that is in the code, I should be able to just abstract it away. And that's what we want to add today, are those two things.
我只是想使用它,我不用考虑我在这段代码中,使用的是什么变量,我完全不用考虑代码的内容,只要抽象就好,我们今天想补充的内容就是这两点。
What if I don't change the value of that variable inside of the code?
那么如果在循环内部,我不改变这些变量的值会怎么样?
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.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
From the mere fact that they can't picture from the inside what it's like to have fainted and not yet woken up, it doesn't mean that nobody believes that they ever faint.
仅从无法设身处地,想象昏倒的感受,不代表没人相信自己会昏倒。
After all, not only is it true that you can't picture from the inside what it's like to be dead, you can't picture from the inside what it's like to be in dreamless sleep.
说到底,不仅人无法想象,死亡的感受,人甚至连无梦的睡眠,当下的感受都无法想象。
Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.
比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。
Now that's going to be important when we talk about making human gene - making human proteins inside alternate hosts like bacteria, that they can't do all the things that your cells can do.
这一步骤在我们谈到,利用像细菌那样的宿主,来生成人类蛋白时非常重要,因为细菌并不具备人类细胞的全部功能
So, these are receptors, for example, that bind the ligand and then liberate an enzyme which promotes some sort of reaction inside the cell, often it's kinases but doesn't have to be.
例如,这里是受体,与配体相结合,激活一种酶,这种酶能够催化细胞内的某些反应,这些酶通常都是激酶,但不全是
What is this? This is a wonderful piece of abstraction. It is saying, you don't need to know squat about what's inside the body of this function. You don't have to worry about the parameter names, because they're going to be preserved, you don't need to worry about how I'm doing it, this tells you how you can use this, in order to use it correctly. Of course, I can then close it off, and off we go.
但是这能告诉你一些信息,这是什么?,这是一段完美的抽象,它的意思是你不需要知道,这个函数的内部构造,你不必担心参数是否重名,因为它们已经被预存了,你不需要担心我如何使用它,它告诉了你你该如何操作,从而正确的使用它,当然我也可以把它关掉。
Because of this my mother used to make Jell-o that had fruit suspended in it, and the fruit doesn't sink to the bottom like you'd expect it to sink through water, but it stays suspended inside.
正因为如此,当我母亲以前做,那种加水果的果冻的时候,水果并不会沉到果冻底部来,你以为它会像在水里那样,但水果是悬在果冻里的
You don't want to generate a lot of cells that just start killing every cell inside your body.
你可不会希望产生一大堆这样的细胞,在你体内大开杀戒
Well at some level it is an ordered sequence of characters. Right? Now it is not represented this same way. You don't see strings inside these open parens and closed parens.
现在字符串不是用这种方式表达的,你没有看到字符串里有开括号闭括号,字符串中间也没有逗号,但是它有同样的属性。
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.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
From the mere fact that you can't picture from the inside what it's like to be dead, it doesn't follow that nobody believes they're going to die.
仅从无法设身处地想象,死亡的感觉,不代表没人会相信自己会死。
应用推荐