And will make mistakes. And therefore, you write your programs so that catastrophes don't occur when those mistakes are made.
就是人是很愚蠢的,会犯错误的,因此,你要这样设计你的程序,以达到当犯错误时避免大事故的目的。
is what we designed, but for aerospace systems.
就是我们要设计的,不过这是为宇航系统设计而已。
To attend these lectures in sections-- more on that in a moment; to submit 9 problem sets, take two quizzes and ultimately design a final project.
每节课都要来参加-,这个一会儿再解释,做完九套习题,参加两次测验,最后设计好期末的大作业。
It's a bad habit to get into, because when you come back to it, it may haunt you later on down the road. So really get into that notion of trying to be defensive as you program.
来运行程序的时候,错误就会出现缠住你了,因此现在我们真的要培养,在程序中有防卫性设计的概念。
In order to devise an insurance contact that does this job, we have to have a contract between an insurance company and the insured.
要想设计一个保险合约,要想做这项工作,我们得在保险公司和,被保险人之间建立一个合约。
Now what we do is to record the number of those action potentials in some period of time, and plot them on the graph below.
现在,我们要做的是记录,在一定时间内可能做出的动作,在图表中设计出来。
So in designing it, this was a trade-off that we made.
因此在设计的时候我们要权衡。
That would be a bad design for our nervous system where we want to use cells over and over again, so they're able to recover from this change in potential.
这样的神经系统设计可不怎么样,我们想要能重复使用的神经细胞,所以它们具有从电势变化中恢复的能力
In addition to studying molecules and making molecules, some chemists Tim Swager want to detect molecules, and a chemist who likes to detect molecules TNT is Tim Swager. So, Tim Swager's lab has designed sensors that detect vapors, Fido and so they will detect TNT, for example.
除了研究和制备分子,有些化学家想要探测分子,其中的一位就是,他的实验组设计了用来探测蒸汽的感应器,可以用来检测比如说,而且他把化学应用到这个机器人手臂里,他们叫它。
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.
我之前提过,这例子研究的是,女性的乳腺癌发病率,你将随机选择其中一半人按一般习惯饮食,另一半人则参与一个干预计划,其中每人都要食用,由营养学家设计推荐的低脂肪菜单,然后再看随着时间推移,被试者的发病率是怎样变化的
That's what we wanna achieve with Kindle, to have a device, so simple, it's a tool that would disappear and let you enter the author's world.
这就是我们想要通过Kindle达到的目标,设计一种简单的装置,自己消失的同时,能够让读者进入作者的世界。
Part two was that they had to design a new product service that Merrill Lynch never offered before.
其次是他们要设计一种,美林未推出的新产品。
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.
但他被人设计了,被一个法国人--马上再说这个,他本来要和一个人在桥上见面,桥横跨在索恩河上,里昂在罗讷河和索恩河的交汇处
So, when we were building Square, we realized that, "Wow! The receipt is something that has never really been designed or looked at. I go up to a coffee store and I hand them my credit card. I say, "I want a cappuccino." I hand them my credit card.
所以当我们建起Square时,我们意识到,“哇!这种入款方式是从未被设计和,看过的,我去咖啡店,拿出信用卡,说,“我要一杯卡布奇诺,“,我把信用卡递给他们。
Correctness just doesn't do what it's supposed to do but then also design and design is one of those things it's a little harder to put your finger on initially, but it really is something to bear in mind especially toward terms end when you tackle your own final projects.
正确性“,就是有没有做应该做事情,然后是“设计“,刚开始时,“设计“相对来说比较难一点,但是这是直到这个学期末,都要记住的东西,当你处理的自己的最终方案时。
In order for a design to work well we have to have every component there.
如果要使一种设计运转良好,这个设计的零部件就必须完整可靠
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.
一个分治的例子,注这里,与二分查找所不同的地方,我们肯定是分解了,但是合并的过程还是需要一些工作量的,我会详细说明怎样把它们合并在一起的,当你在考虑设计一个分治算法时,这是你要必须记住的最基本的东西。
This is just a little inelegant and so one of the things we'll introduce early on is this idea of abstraction or design whereby if you wanna represent the ideas of 0 and 1, true or false, well, let's give them a synonym like true or false.
这么说有点粗野,我要接着讲的是这种抽象的思想,或者用这个来描绘设计出,真和假的思想,我们可以给真假各指定一个同义词。
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的创造者,决定创造这门语言的时候,的一个设计决定,他们主要的说了说,我们要有一个明确的,指向实例的指针。
And two, to give you a better sense of design especially as your programs get a little more involved and they play or they run for more than just a few seconds time.
另一方面,使你们对设计更有感觉,尤其是你的程序要适用于更多的应用环境或,要运行不止几秒钟时间的时候。
But the things we were trying to stress were that it's an important design decision when you are coming up with a piece of code, as to what kind of efficiency your code has.
但是我们这里要强调的是,当你写代码的时候,决定你的代码的效率的很重要的事情,就是你的设计决定。
They had to work on that, they had to devise-- they had to get an appraisal industry that could appraise houses and get some idea of what they're really worth.
他们得做些工作,他们要设计出-,他们不得不借助于评估机构,以便于鉴定房屋情况,并且得知一些,其真实价值的参考意见。
应用推荐