I was given two weeks and one other programmer in Biz Stone to write the software. And we did it.
我和比兹·斯通手下的另一个程序设计师,得到了两周时间来编写软件。
We broke up into groups, and each group designed its own toy and made an alpha prototype.
我们分成几个小组,每一组独立设计,并制作出一个玩具模型。
As every time we introduce a new programming concept, we'll relate it back, as we have been doing consistently, to defensive programming.
我们每次介绍一个,新的编程概念的时候,就会和以前讲的联系起来,就和我们介绍防卫性程序设计一样。
We can't just smash things and start all over, we have to design a system of risk management.
而不是简单地打破一切再重新来过,我们应当设计一个好的风险管理体系。
MP3 I used to make stuff like the natural language interface to play my MP3s.
我曾经为自己的,设计了一个自然语言界面。
And there's this third axis called "style," which is really a more subjective aesthetic sense.
还有第三个中心线叫做“设计风格“,那是一个主观的审美学的观念。
And you know, you could have a reversible engine with lots and lots of steps, but you could always break them down into some sequence of adiabatic and isothermal steps.
你们知道,我们可以设计一个由,很多很多个,循环步骤的热机,但是总可以把它分割成,一系列的绝热,和等温过程。
Now, what they did was--they were clever psychologists so they set it up in a study where the people did not know sexual orientation was at issue.
他们都是聪明的心理学家,他们设计了一个实验,实验对象并不知道研究的是同性恋问题。
This is one aspect of Biomedical Engineering, developing tools that allow you to understand how human's function and what's wrong when they have disease and so some of the things we've talked about have that category.
这是生物医学工程研究的一个方向,即设计那些能够让人们了解,人体的运转方式的工具,以及能够诊断疾病的工具,我们刚才讲过的一些东西就属于这类
But he got set up by somebody, by a French person--more about this in a minute, and he was supposed to meet somebody on a bridge overlooking the Saone River Lyon was at the confluence of the Rhone and the Saone.
但他被人设计了,被一个法国人--马上再说这个,他本来要和一个人在桥上见面,桥横跨在索恩河上,里昂在罗讷河和索恩河的交汇处
and we design a product from start to finish. And this year, the theme is food, so
我们负责一个产品从头到尾的设计。今年的主题是食品,所以
So, it's very well designed such that they've minimized any of these destructive interference dead sounds. So, it's nice, on a student budget you can go and get the worst seat in the house and you can hear just as well as they can hear up front, even if you can't actually see what's going on.
世界上最好的两三个音乐厅之一,它的设计十分精巧,把任何相干相消,都见到了最低,所以这点对于你们,用学生预算买到一个最差的位置的人,来说是很好的,你们可以听得,像前排一样清楚,虽然你们,可能看不见台上发生了什么。
As I mentioned before is one example on the risk for breast cancer in women, so you'd randomly assign half to following their usual diet, the other half to an intervention program where people are prescribed a low fact diet, given counseling and interventions from dieticians and things, and then you look to see what happens for risk as people go forward in time.
我之前提过,这例子研究的是,女性的乳腺癌发病率,你将随机选择其中一半人按一般习惯饮食,另一半人则参与一个干预计划,其中每人都要食用,由营养学家设计推荐的低脂肪菜单,然后再看随着时间推移,被试者的发病率是怎样变化的
What I want this class to be is a class where at least sometimes, like on this homework assignment, I set up a model for you, set up the story for you, and then you have to actually figure out how do I set this up properly and how do I solve it out?
我希望这个课程是至少在某些时候,就像这次家庭作业,我为你们设定一个模型,设定故事情节,然后由你们自己实际操作,如何恰当地设计并解决它
But the first time I got here, I wasn't a graphic designer, just like first day.
但第一次来这里的时候,就像一开始一样,我并不是一个图像设计师。
and like, work on a clothing label and that kind of thing.
比如,设计一个服装品牌,像这类事情。
Because one of the things that you want to do as a good designer is to basically map a new problem into a known domain.
因为如果你们,想做一个好的设计师,最基本的事情之一就是学会,把没碰到过的问题映射到已经领域中去。
When someone invented the airplane, before you knew it every country had an airplane because there was a best practice, there was a best technology and it was not unique to any one country.
有人发明了飞机,不知不觉,每个国家都有飞机了,因为这些最佳的设计,这些最好的技术,并不是一个国家所独有的
You at this point don't see what I'm seeing because I haven't hit this button, but now you'll actually see that I've brought up a terminal window.
在这里你们没看到我所看到的,因为我还么有点击这个按钮,但是现在你们的确看到了,我设计了一个终端窗口。
It has to have a contract design; that would be a document, which is a contract between the insured and the insurance company.
它必须有合同设计,那是一个文件,也就是被保险人和保险公司签订的合同
So maybe you could figure out how to use what we know about molecular biology, to engineer a new virus that's still immunogenic, but not pathogenic any longer.
也许你能指出如何使用,分子生物学的有关知识,来设计一个既能产生免疫性,但又不再有致病性的新病毒
I stress it in particular because I know you're all going to get into this stage; you've got a problem set due in a couple of hours, you're still writing the code, you don't want to waste time, and I'm going to use quotes on "waste time", doing those extra things to do the defensive programming, you just want to get the darn thing done.
我特别强调了这一点,因为我知道你们都会慢慢成为程序员;,你在写代码过程中造成了一系列的错误,你还在写代码,你不想浪费时间,我想把“浪费时间“用引号圈起来,浪费时间来做因为防卫性程序设计,而带来的这些额外的事情,你只想赶紧把程序写完,这不是一个好习惯,因为当你做完回头。
So, what you do is you set up a couple of displays, one where the block is stopped, the other one where you take this away with a trap door and it keeps going.
所以,你可以设计几个演示,一个是木块被挡住了,另一个是用活门把木块挪开,使得屏板继续上升
In order to devise an insurance contact that does this job, we have to have a contract between an insurance company and the insured.
要想设计一个保险合约,要想做这项工作,我们得在保险公司和,被保险人之间建立一个合约。
The gold standard was a success in the sense that the price of gold stayed constant because that's what the whole system was designed to do.
金本位制度是一个成功,因为金子的价值保持不变,并且这也是,人们当初对这设计整个系统的意图所在。
Then he had a machine that granted each pigeon one piece of corn every fifteen seconds; that's very, frustratingly slow for a hungry pigeon to get one piece every fifteen seconds.
他们设计了一个能保证,每隔15秒给鸽子喂一玉米粒的装置,对饥饿的鸽子来说是杯水车薪,每15秒才只有一粒玉米
You try to design actually I'm going to come back to that in a second. It's like you're trying to use a hash function that spread things out pretty evenly. But the places you store into in those lists may have to themselves have a small list in there, and when you go to check something, you may have to do a linear search through the elements in that list.
你尝试着去设计,实际上过会儿我会回头讲解这个问题,类似于你需要用一个哈希函数,非常平均的将物体分发出去,但是在列表中你数据,映射到的地方可能会有自己的一小段列表,当你回头查找数据的时候,你可能需要在那一小段列表中做线性查找。
Notice here that it's different than the binary search case. We're certainly dividing down, but the combination now actually takes some work. I'll have to actually figure out how to put them back together. And that's a general thing you want to keep in mind when you're thinking about designing a divide and conquer kind of algorithm.
一个分治的例子,注这里,与二分查找所不同的地方,我们肯定是分解了,但是合并的过程还是需要一些工作量的,我会详细说明怎样把它们合并在一起的,当你在考虑设计一个分治算法时,这是你要必须记住的最基本的东西。
Well, basically because it was a design choice when the creators of Python decided to create the language, they basically said, we're always going to have an explicit pointer to the instance.
好,基本上来说这是因为,这是当Python的创造者,决定创造这门语言的时候,的一个设计决定,他们主要的说了说,我们要有一个明确的,指向实例的指针。
my team is working on a spice vending machine for spices.
我们的团队正在设计一个调味料的自动售货机。
应用推荐