So when someone comes to me, and they're about to do a test, I ask them, what do you expect your program to do?
因此当很多人找到我想要,做一次实验的时候,我问他们你期待你,的程序返回什么结果呢?
If you want to spend time with a friend but you need to find out their schedule first,
如果你想要和朋友们一起玩,你首先得看一下他们的日程安排。
And when you take that beyond even a personal relationship, when you love people, you wanna share.
当你让爱超越个人感情的时候,当你爱所有人,你想要和他们分享。
Since, the Greeks really didn't believe in personal immortality, how do you find what everybody wants?
因为希腊人的确不相信个人的永生,你如何找到他们想要什么
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.
假设你想训练某人做某事,你想要找到一种训练方法,使得他们即便不再接受训练,也依然能够持续展现某种行为,而这正是你想要的。
You do want to know who they assassinated.
你肯定想知道他们要杀谁。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
But then once they get over, "Hey, what are you doing to me?"
但一旦他们明白过来,他们会说:“喂,你想要我怎样啊?”
I mean, most of it is who you know and how they want.
大部分都是你认识的人和他们想要的东西。
So, you'd have a whole bunch of people selling securities down there and they could vacate quickly if the authorities challenged you.
接下来,你雇了一群人,在这间地下室里帮你出售证券,如果政府想要发难,他们可以快速撤离
and you want to find out about their interests,
你想要了解他们的兴趣。
They will make you whatever you want.
无论你想要什么,他们都会给你提供。
They're going to want to help you if you're young and smart,
他们会想要帮助你的,如果你年轻又聪明,
应用推荐