If we're going to write programs, we need at least two things: we need some representation for fundamental data.
如果我们要去写程序,我们需要至少两件事情:,我们需要一些能代表基础数据的东西。
But still, in a way it's kind of like a good thing because you are going to find out more stuff about them,
但是,从某个角度来看,这仍然是件好事,因为你将发现更多关于他们的东西,
So this is a thing, Week Number Four, saw very commonly, which was -- this is something we saw commonly and there's a couple of issues here.
所以这是一件事,第四个,一般的分解,那是我们讲解的东西,这里有好几个问题。
I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
So we can think about something I mentioned last time, which is when we're thinking about chemistry and what's really interesting in terms of chemical reactions, it's mostly valence electrons we're talking about, those are the ones that tend to be involved in chemical reactions.
我们可以考虑一下我上次提到过的一件事,那就是如果我们讨论化学,以及什么是化学反应中,真正令人感兴趣的东西,我们讨论的几乎都是价电子,它们才是在化学反应中,真正起作用的部分。
Well, now one of the things farmers in history discovered is that it's very hard to do well as a farmer if all you do is grow the crops, because people normally don't use what you grow in the form in which you grow it.
关于农民我们在历史上能够得知的一件事是,当好农民很困难,特别是只种农作物的农民,因为人们一般不会将,你从地里种出来的东西留作种子
And so I think it's really interesting to see how the mind can contain so much.
所以我想,能看到大脑能容纳这么多东西真是件有趣的事情。
That's four items. Show up, sit down, and the first question is does anybody have a pen?
总共4件东西,你们来到,坐下,第一个问题是你们有带铅笔吗?
and it struck me that that there was a lot missing from the picture that has been given in Washington as they were trying to set policies that would affect education, that would affect the regulation of entertainment in terms of understanding of young people's relationships to technology.
让我感到震惊的是,在整件事情上还有许多东西不为人所知,在华盛顿这些都展示于世人面前,正如他们在制定政策,能够影响教育的发展,影响娱乐业的行业规则,至于了解,年轻人与技术的关系。
My shoes were from the sale, but that's maybe like the only new thing I bought.
我的鞋子是在促销时候买的,但那可能是我买的唯一一件新的东西了。
and a lot of that has been cleaned up which I think is a good thing.
很多这类的东西都被清理了,我认为这样很好这是件好事。
or a bolero jacket or something for a special occasion.
或者一件短上衣夹克,或者一些特殊场合需要的东西。
my two favorite things that I own are both expensive.
我拥有的最喜欢的两件东西都很贵。
This is the one thing God says, "Don't do this! You can have everything else in this garden," Presumably, even, you can eat of the tree of life, right?
这是上帝所说的一件事,“不要吃这个,你可享用园子中其他任何东西“,我们猜想,你甚至能吃生命树,对吧?
Haze poked his toe in his side, and he wheezed for a second and then was quiet. "Two things I can't stand," Haze said, "a man that ain't true, and one that mocks what is. You shouldn't ever have tampered with me if you didn't want what you got."
海斯把他的脚放在他身边,他喘息了一秒,之后便静了下来,海斯说,有两件事是我所不能忍受的,不诚实的人,嘲笑他人的人,你本不该,碰我的东西,如果你不想要得到什么“
But if life would no longer have anything good to offer you, if what you then would have had would have been something negative instead of something positive, then at that point, dying wouldn't actually be a bad thing.
但是当生命再也不能向你提供美好,届时我们面对的是,消极的而非积极的东西,那时死亡可能不是一件坏事。
What I want to do today is three things: I'm going to start-- actually, I shouldn't say start, I'm going to do a little bit of administrivia, the kinds of things you need to know about how we're going to run the course.
今天我要做三件事儿:,我要开始了--其实不应该说开始,我准备做一点儿文案工作,也就是关于怎么上课的,一些你们必须知道的东西。
Some people like to use shallow and deep, object and value, but they're talking about the same thing, which is it the same object or is it the same, in this case, set of values, depending on what you want to define as you use it.
有些人喜欢用对象相等值相等,但是它们是同一件东西,也就是是不是同一个对象,或者是不是同样的,在这个例子中,是同样的值集合,这取决于当你使用它的时候,想要怎么来定义它。
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.
我知道这是个很简单的例子,但是当你们成长为一名程序员后,当你们碰到问题后第一件事情就是,该写一些类似于,伪代码的东西。
So those are the four items.
所以你们要带4件东西。
And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.
当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。
This was the burglar example where they had two copies of everything.
也就是那个窃贼的例子,每件东西都有两件。
Finally, another thing that is important is that all the stories that are generated as a result of using Star Festival as a model are becoming communal story So people share what they create with Star Festival.
最后,另一件重要的事就是,通过使用“七夕“这一模型发掘的所有的,这些故事正成为共同的故事,人们将他们用“七夕“创造的东西与他人共享。
We've been talking about the question as to whether or not it would be desirable to live forever, whether immortality would actually be a good thing, as most of normally presume, or whether in fact, as Bernard Williams argues, it would be undesirable.
我们探讨的问题是,是否该有永生的渴望,永生是否像一般假想那样,是件好东西,或者其实,如Bernard,Williams所言,是不该期许之物。
Person is a real velvet Elvis fan and needed two copies of this one.
每件东西都有两个,这个人是一个,天鹅绒Elvis爱好者,因此它2个都想要。
应用推荐