You could really feel the audience watching as you're doing it."
VOA: standard.2009.11.23
It could be, preconditions I want to have on input It could be, explanations of specific things you're doing.
也可以是我对输入的预期是什么,也可以是,对代码,正在进行的特定操作的解释。
But I think it's also important to kind of have this outset experiences in addition to what you're doing in class,
但是,我认为这也是在课堂学习之外比较重要的经历。
Because you can hire someone who is a software engineer and he's been doing it for 10 years and if they're doing it for 10 years that's probably what they're doing for their life, you know, and I mean that's cool.
你可以聘用一名,有着十年工作经验的软件工程师,如果他已经在这行业,待了十年了,那么可能这辈子他都会干这行,这样不错。
And this is the same periodic table that you're going to get in your exams, so it's good to practice doing your problem-sets with that periodic table so you're not relying on having the double check right there of seeing what the electron configuration is.
这也是你们考试时会用到的相同的表,这样你们就不会,所以使用周期表来做问题集,是很好的练习,这样你们就,不会依赖于再次确认,电子构型是什么了。
What you're much better at doing is saying how do I take the problem I've got and map it into a class of algorithms about which I know and use the efficiencies of those to try and figure out how to make it work.
当你碰到问题的时候,更好的方法是把遇到的问题映射,到已经设计好的算法中去,并用这些算法来提高效率,来保证问题得到解决。
You're taking the air inside of the pump and you're compressing it. You're doing it so fast that there's not enough time for heat to come out of the gas that's inside the pump towards the walls of the pump.
你把空气吸进气筒里并且压缩它,你的动作很快以至于,没有足够的时间让热量,从气筒里面跑出来,传递到气筒壁上。
Now, there's something you do that's so obvious you probably don't even know you're doing it.
现在,你做了件你自己都未必意识到的,超级无聊的事情
So, I brought up this idea, "What if we could just use SMS? You could send what you're doing. It will go out in real time to all the people who are interested in hearing it. And then, it would be archived on the Web. You could also enter it from the Web and it would be device-agnostic.
所以我提出了这样的想法,如果我们只使用短信息会怎么样?,你可以发送你正在做的事,它会立即,让每个有兴趣听的人都看到,接着,它会在网上存档,你还能再网上读到它,而不需要设备支持。
You know, if you're doing it, let's say, for instance, you're on Broadway,
如果你是做这一行的,假如你是在百老汇,
Just as in grade school when you're doing division and multiplication, you do it from left to right in terms of order of operations.
正像是在小学你做除法和乘法的时候,你毫不含糊地从左到右,按顺序做运算。
Okay, you're right to shout out because I'm very-- I mean doing it on the board i'm very likely to make mistakes, but okay.
你大声说出来这点很好,我写板书的时候容易犯错误
You're not doing any of it.
其实你什么都没有做。
You are so successful at the working you're doing. Keep it up.
学得真棒!再接再厉哦!
It brings the focus on whatever you're doing.
这个句型能让焦点集中于你所做的任何事情上面。
If you have your health, luck comes and goes and realize when you're doing really well that it's not just you. Then, when you're not, it's not just you either.
如果你很健康而且运气来来去去,当你做的很出色的时候你意识到不只是你很出色,当你不是很出色的时候,也不仅仅是你自己做的不好。
I wouldn't give a midterm, because I think it's a waste of time, except we have to have some sort of-- it gives you an indication how you're doing in the course.
我不想考期中,因为我觉得就是浪费时间,不过我们必须得有点什么,能让你知道你这门课学得怎么样了
You're doing a great job. You've got it.
你学得真不错。看来已经掌握得差不多了。
Why? Because typically, you're doing that to use it somewhere else in the program.
为什么要这么做呢?因为你经常会在程序中,用到这一点。
If the stereotype is "your group doesn't do good in this," if I remind you that you're a member of that group immediately before doing it, your performance will drop.
如果刻板印象是“你的群体数学不好”,如果我在考前说,你是这个群体的,你的表现就会下降。
Suppose you want to train somebody to do something and you want the training such that they'll keep on doing it even if you're not training them anymore, which is typically what you want.
假设你想训练某人做某事,你想要找到一种训练方法,使得他们即便不再接受训练,也依然能够持续展现某种行为,而这正是你想要的。
The way to do terrible things--One way to do terrible things is to lose yourself so you're not an individual anymore but another way to do terrible things is so that the person you're doing it to isn't an individual.
使人变坏的其中一股力量,就是抹杀自己的个性,你不再是自己,而使人变坏的另一股力量,就是抹杀你行恶的对象的个性。
What is this? This is a wonderful piece of abstraction. It is saying, you don't need to know squat about what's inside the body of this function. You don't have to worry about the parameter names, because they're going to be preserved, you don't need to worry about how I'm doing it, this tells you how you can use this, in order to use it correctly. Of course, I can then close it off, and off we go.
但是这能告诉你一些信息,这是什么?,这是一段完美的抽象,它的意思是你不需要知道,这个函数的内部构造,你不必担心参数是否重名,因为它们已经被预存了,你不需要担心我如何使用它,它告诉了你你该如何操作,从而正确的使用它,当然我也可以把它关掉。
Tell me later what it is you're going to be doing for the rest of your life.
你们有谁说过自己讨厌一门学科吗?,今后记得告诉我你打算从事什么行业。
Give you some examples. What have we talked about? We've talked about things like using comments to highlight what you're doing in the code, to make it easier to debug.
给大家举些例子,我们一直在强调什么来着?,我们讲过要用注释来说明,你在代码中进行的操作,以便于调试。
It's a long sequence of instructions, it starts at the beginning, walks through, may jump around a little bit, but eventually comes down at the end. It's okay for the things you're doing for the early problem sets.
这是一长串指令,从开端开始,向前步行,偶尔来回跳一会儿,但是最终会走到结尾,这些足以解决最初级的问题。
So that's just a little bit of a check for yourself, and it should make sense because what you're doing is you're calculating the difference between energy levels, so you just need to flip around which you put first to end up with a positive number here, and that's a little bit of a check that you can do what yourself.
所以你们总要确保括号,离得这项是正的,这是你们自己,可以做的检查,这事很有道理的,因为你们做的是计算能量差,所以你需要调整顺序来保证一个正数,这是你们自己可以做的检查。
It's something you're doing with others.
是你和他人一起做的一件事。
hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.
比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你要记住的最重要的事情,就是要系统化的去做调试。
We saw some quadratic algorithms, typically those are things with multiple nested loops, or iterative or recursive calls, where you're doing, say, a linear amount of time but you're doing it a linear number of times and so it becomes quadratic, and you'll see other polynomial kinds of algorithms.
我们看过一些平方算法,他们一般进行了多次嵌套循环,或者递归迭代调用,对一个线性操作调用线性次,这样就变成平方次了,以后你们能看到,一些多项式算法。
应用推荐