Suppose I want to do little piece of code that's going to do planar geometry, points in the plane.
好,因此我需要一些,把这些东西收集到,一起的一些方式。
The thing I like about Berkeley is it does have all of the things that, that kids need.
我喜欢伯克利的一点是,所有孩子们需要的东西这里都有,
I've got some internal variables I have to store, what kinds of things do I have to keep track of?
计算的时候需要占用多少内存,我需要存储一些内部变量,我需要记录哪些东西呢?
for short...to answer that question, we need to get clearer about: What exactly is it for something to be me?
等等这些问题,我们需要先清楚以下问题,我究竟是什么东西
And then, suddenly I need to MacBook Air sell my MacBook Air on Craigslist and I can take the person's credit card instead of having them bring $1200 to me or whatever I'm selling it for.
之后突然我需要,在克雷格斯利斯特网站上卖我的,而且我可以让那个人拿信用卡过来,而不是,带着1200美元或是我需要的别的东西给我。
If I want to get down to very, very fine dimensions, I have to bring huge energy and disturb the very thing I am going to measure.
如果我想认真处理很精确很精确的度量,我需要用巨大的能量,但是弄乱我将测量的东西。
Now to make that happen, it's not adiabatic, right. If I wanted to do that, I'd need a heating element or something to cool, so I could make that temperature change happen, right.
要实现这点,它就不会是绝热的,对吧,如果我想做到这点,我需要一个加热元件或什么制冷的东西,这样我才能让温度变化。
stdio I don't even need standard IO because I'm not printing anything.
我甚至不需要,因为我不需要打印任何东西。
I think that part is fine, but behind that you need something to replace what was there When you have peace then you need to bring in stablity that means economic stability as well as security stability You need the police. You need the government. You need the economy.
我认为计划本身是好的,但还需要一些东西来填充以为以前的空缺,和平了,你就需要稳定,经济稳定,安全局势的稳定等,我们需要警察,需要政府,经济也要发展。
Now why? When I put this class together, I didn't think to myself, "Ok, so what are the things that I need to introduce ?" in order to please the participants in the class, the students?"
为什么?,当我开这门课程时,我自己没想过,“好的,我需要介绍些什么东西,以便能取悦课程的参与者,这些学生呢“
But I got a couple of other of these strange looking things in there with underbars to them.
我可以在这片代码中看到这些,然后我需要一些可以给我,返回这些信息的东西,但是这里还有一些看起来。
If the really crucial question is not Do I survive, but Do I have what I wanted when I wanted to survive?
如果关键的问题不是我是否存活,而是我存活时是否有我需要的东西?
Figure out what I'm trying to walk through What's the collection of things I'm trying to walk through. Figure out what I want to do at each stage. Figure out what the end test is.
弄清楚需要遍历的东西,弄清楚我需要遍历的东西的集合,弄清楚我在每一步该做什么,弄清楚终结测试。
That is, if I want to combine two things together in a particular way, I need to make sure that I give it the kind of operand it expects.
也就是,如果我想以一种特定的方式,把两个东西组合到一块,我需要确定,给了运算符它想要的输入。
So I would choose something that have a wave lines off You wouldn't measure the dimension of a human hair with a yardstick, so I need something on this order.
所以我会选些东西,你将不会用一个码尺去量,人的头发有多大,所以我需要一些这个级数上的东西。
What we'd be looking for,I take it, would be some kind of behavior on our part that calls out for explanation.
我认为,我们在寻找的东西,应该是某种我们需要解释的行为。
That means it was something I didn't understand. So I'm going to be cautious and systematic.
这就意味着代码中有一些,我没有理解的东西,因此我需要谨慎,并且系统化的去寻找这个错误。
It doesn't give me what I want,when I want to survive.
这并没有给我想要存活时需要的东西。
And if the best that the soul theorist has is, "Maybe we need this to explain something that I don't see how you guys can explain, maybe this would help, though I can't quite see how either," that's not a very compelling argument.
如果灵魂主义者最为充分的理由是,或许我们需要灵魂来解释些,我认为你们不能解释的东西,或许这样能有些帮助,尽管我也不清楚怎样用灵魂解释,这就不是一个很有说服力的论证
Nonetheless, having done that, let's look at what I'm going to do. I now want to run a loop where I need to collect things together.
尽管如此,讲完了这些,让我们去看看,我将要进行的操作,我想要运行一个,需要把东西收集起来的循环,我要命名它。
But no one dared say we have this little planetary model, I've got an electron orbiting a central nucleus and I am going to endow that electron with quantized states That was a big leap and that was Bohr in postulate five Postulate five I am just going to reproduce.
但是没有人敢说,我们拥有了这个小行星模型,知道了电子绕原子核运行,现在就要让它使电子处于量化的状态,假设五中波尔的成就是一个跳跃式的进步,假设五中我只需要重申一些东西。
Having already chosen to use equal as an assignment, I need something else to do comparison.
既然等号是,用来赋值的,我需要用一些东西来做比较。
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.
如果我们现在去运行程序的话,希望我们会得到-噢,抱歉,我得去马上,改下代码,还有一些在底部的东西没被注释掉,对,就在这儿了,我不认为我们需要,这些东西了,好,我们把它们注释掉,好,那么我为什么要讲这些呢?
应用推荐