If you've ever been using some program, you did something completely innocuous, pull something down from a menu, click a button, you didn't do anything wrong and yet all of a sudden the thing just starts hanging there or you get a little spinning beach ball or the hour glass or whatever it is.
如果你之前在用一些程序,做一些无伤大雅的事情,拉下一个菜单,点击一个按钮,你没有做任何错误的事情,突然间有东西开始一直运行,或者一个沙滩上的小球旋转,或滴漏或是别的什么。
that something you that you either did or did not do but should have done.
为一些你之前做过的或是本该做却没有做的事情表示遗憾。
But at the end of the day, this program does in effect nothing because I'm not printing the answer, I'm not saving the answer, I'm not doing anything with the answer.
但最终这个程序都不会做什么有效地事情,因为我没有把答案打印出来,我没有保存那个答案,我没有对那个答案做相应的操作。
Well, one of the things wars did, most people not seemed to have noticed, is that it took 12 million men out of the civilian labor force and put them in uniforms.
战争做的事情,大部分人似乎没有意识到,就是战争让1200万人,加入军队,穿上军服。
Indeed, no computer actually does this.
实际上,没有电脑真正会做这些事情
And there is no programming language that is better well actually, that's not quite true, there are some better at doing certain kinds of things but there's nothing that you can do in C that you can't do in Fortran.
没有一种编程语言是更优秀的,当然实际上,这并不是完全对的,在做某些事儿时一些语言会更好用,但是没有事情是你能在C语言中做,而不能在Fortran中做的。
There's not as much to do. It's not as cultured as New York.
但在我的家乡并没有很多事情可以做,那里不像纽约这样充满文化气息。
And without them you wouldn't do anything, you couldn't do anything.
没有情感,你什么也不能做,你不能做任何事情。
There's no adult supervision and you kind of run everything.
没有大人的监督,你可以做任何事情。
No fun, everyone's strict, there's nothing to do.
没有乐趣,人人都很紧张,没什么事情可做。
when you've never done something before.
当你从来没有做过这些事情之前。
Like if you're one of the people who hasn't been writing down things as you go along, and then you enter things at the end of the day, and I suspect that's the majority of you, you may have entered things into your record and then later gone and said, oh I forgot, I had this thing!
比如你是这些人之一,没有及时记下自己做的事情,在一天结束时你要提交信息了,我猜你们中的大部分,输入自己的信息,之后可能会发现,我忘了,还有这个
So, in fact we may not find a sock at all and yet we don't seem to handle that at all unless if we don't find any socks, what do we do?
实际上我们可能找不到袜子,并且不用处理那些事情,前提是我们没有找到任何袜子,我们做什么呢?
And just as with variables, you should use some common sense, some style here, and the function's name should X Y communicate what it does, calling it X or Y or Z is generally not all that helpful.
就像变量,你使用一些常识,一些类型,和函数名需要,传达它所做的事情,把它叫做,或者Z通常是没有什么用处的。
Because it means the crisis is presenting them with an opportunity to do things that t be able to do otherwise.
因为这意味着危机让他们,有机会做一些事情,若没有危机的机会是无法做到的,they,wouldn’
Even if we could build a program, even if we had built programs that can be creative, that can do things that nobody's thought of before, all the program is doing is following its program, right?
即使我们能编写一个程序,即使我们已经编写出具有创造力的程序,它们可以做一些从来没有人想到过的事情,程序所做的只不过是执行程序,对吗
We have a whole lot of things that are worth doing Obama has not been talking about scooping out people and helping them, standing around holding shovels in the middle of some forest.
有很多值得去做的事情,奥巴马没有提及,直接帮助人们,摆脱困境。
If it isn't, then I'm going to go back around the loop, and notice what happens. If I get all the way around the loop, that is, all the way through that FOR loop and I never find a path that takes me through here, then the last thing I'm going to do is return a pair or a tuple with a special simple number none twice.
如果没有,我会回到循环看看发生了什么,如果我运行了整个循环,也就是整个for循环,我仍没有找到符合条件的路径,那么我最后做的事情就是返回一对,或者一个数组的两次none值。
应用推荐