Divide and conquer to make our programs modular so we can write them a little piece at a time and understand them a little piece at a time.
我们把程序分解为模块逐个击破,以便我们能一次写一小段,一次理解一点儿,现在我觉得。
And I don't know, it's kind of just like a little piece of that
我也说不上来,总是觉得有点儿那个时代的感觉
What's the clich? Globalized world; it was a globalized world, except it was a little piece of the globe.
用什么词语呢,全球化的世界,那是一个全球化的世界,只是那个世界并不大
This seems a little weird, but bear with me for second, in fact, I've given you a little piece a code to do it, which is the next piece of code on the hand out.
这看起来有点奇怪,但是先听我说,实际上我给了你们一段做这件事的代码,就是发给你们的纸张的下一段。
What could possibly drive somebody to jump out of an airplane with nothing but a little piece of cloth between them and death?
是什么可能驱使某人跳下飞机,而他们与死亡之间只有一片小小的布?
And starting this morning i got from my wife a little piece of jade and I have been sort of in touch with my fun side.
于是今天早上我从妻子那里拿了一块玛瑙,到现在为止,我的心情都还挺不错的。
Just I feel like it's a little piece of the countryside.
我感觉就像是在乡村生活。
Okay, that's a little bit of this ambiguity between major and minor in a piece of traditional Jewish music.
好了,大调和小调,在传统的犹太音乐中有些含糊的地方
He was a hobo by choice: As a little boy, he'd seen a hobo come up to ask his mother for a piece of pie and she had given it to him and when the hobo went off down the road the little boy had said, "Ma, what was that fellow?" "Why, that's a hobo."
他是自愿成为流浪汉的:,当他还是个小男孩的时候,他见过一个流浪汉向他妈妈,要一块派,他妈妈给他了,于是当流浪汉离开的时候小男孩就问,“妈妈,那个家伙是谁“,“是个流浪汉“
It's a little puzzle piece that says when the green flag is clicked and this is kind ; of like the beginning of a program; when you double click an icon on your desktop this is how something like that is implemented; it's listening for that double click, it's listening for that green flag.
是一小个按钮,它的意思是,何时点击绿色旗帜,这就好比开始运行程序;,当你双击桌面上的图标,就开始执行操作,桌面的图标需要双击,绿色小旗也等待点击来执行命令。
The reason they call them coupons is that, in the old days, you used to actually--when you bought a bond, there would be a piece of paper and the piece of paper would have attached to it a lot of little coupons that you would clip.
这里被称作"票息"的原因是,在过去,当你买了债券的时候,会有一张纸,那张纸上附带了许多,你能剪下来的小纸票
And those instructions, by the way, are very simple: they're things like, take the value out of two places in memory, and run them through the multiplier in here, a little piece of circuitry, and stick them back into someplace in memory.
顺便说一句,那些指令非常简单:,他们从记忆存储器中,取出两个位置的结果,在倍增器中运行,一小部分电路,再将它们插回存储器中的某些地方去。
Right, so here's a little piece of code that's going to print out the smallest value of three.
好,那么这一小段代码,就是会显示出,三个值中最小的来。
a little piece of history here, if you like.
如果你喜欢,有一点小历史要跟你们说。
Right, and just to get a sense of this, let's look at a simple little example, so on your hand-out, you'll see I've got a little piece of code that says assuming I've got one of these points, I want to do things with it, for example I might want to add them together.
这些数组中的一个,你怎么能够知道,它是哪种类型的呢?,你怎么知道它是以笛卡尔坐标,表示的还是以极坐标,形式表示的呢?,你没有可以用来区分的东西,你没有说明这种信息,聚集实际上的意义。
Now, admittedly they've got this little piece of cloth that gives them a decent chance of not killing themselves when they jump out of airplanes.
现在,必须承认他们有这么小小的一片布,给了他们一个当他们跳下飞机时,不会死的足够的可能性。
I want to write a little piece of code.
我想写一小段代码。
And in particular, if I think about that problem - actually I want to do this- if I think about that problem, I'm going to write a little piece of pseudo code.
关于这个问题尤其要注意的是,实际上当我考虑这个-,问题的时候我想这么做,我会去写一点伪代码。
All right, you can see that this little piece of code, it's got a loop in there, and what's it doing?
好,你们看到的这一小块代码,是做了一个循环吧?,他在做什么?
And I think this is best illustrated by giving you a simple little piece of code.
我认为给你看一段简单的代码,可以很好的说明这个问题。
Hopelessly out of touch with popular culture and nobody knows this better than I and to prove this I have chosen a piece because there's a little story with it.
貌似我和流行文化没有一丁点接轨的,这我比谁都清楚,可以为我证明这点,是一个小故事
If I hear lots of buzzing out there, that means you're into it, so hum the piece a little bit to yourself, Musorgsky's "Great Gate of Kiev" Here and Pictures at an Exhibition and see if you can write down those particular symbols.
如果我听到了很多嗡嗡声,就说明你们都投入进去了,那就自己跟着曲子小声哼哼吧,穆索尔斯基的《基辅的城门》,以及《图画展览会》,看看你是否可以写下那些特殊符号来
I've got a little piece of code called same point.
一小段代码,稍微往下一点。
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
I want to play this one with the piano a little bit and I ask you the name of the composer of this piece-- it's a bit less well known but maybe not-- what it's called and when in the history of music it was written.
我会用钢琴演奏一小段,然后我会问它的作曲是谁,这曲子有点不太知名,也说不准,它叫什么,在音乐史上是什么时期创作出来的
I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?
完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?
应用推荐