- Up to this point -- and some of you may have felt this -- I have been throwing the word chastity around a little promiscuously.
直到现在--也许有些人已经感觉到了-,我使用贞节这个词有点混乱无章法。
There's still plenty of it the food supply, believe me, but some companies have taken them out.
相信我,其实还有很多厂商仍在使用,但有些公司已经将反式脂肪剔除了
And to do this, I'm going to use some code that I've already typed in.
为了达到这个目的,我会去使用一些,我已经写好的代码。
You might have already noticed that I'm using the classes V2 server so the syllabus is there, I'm going to go over the syllabus a little bit later, but the syllabus is available online.
你们可能已经注意到,我使用了班级服务器,所以课程大纲在这儿,虽然我待会儿会把这页内容翻过去,不过课程大纲已经挂在网上了
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.
但是这能告诉你一些信息,这是什么?,这是一段完美的抽象,它的意思是你不需要知道,这个函数的内部构造,你不必担心参数是否重名,因为它们已经被预存了,你不需要担心我如何使用它,它告诉了你你该如何操作,从而正确的使用它,当然我也可以把它关掉。
Now that I've written sqrt, I can just use it anywhere I want in the code. You've got to rely on the fact that I wrote it correctly, but you can basically suppress the details of how it's used.
就是忽略细节,既然我已经编写了sqrt函数,我可以在代码的任何地方使用它,你完全可以依靠,我已经编写的这个函数。
应用推荐