And get into the habit of using it to help you define what is the flow of control.
然后是养成用伪代码,来帮助你定义控制流的习惯。
Right, so the things we want you to take away from this are, get into the habit of using pseudo code when you sit down to start a problem, write out what are the steps.
好,这儿我想大家明白的就是,养成解决问题时先写伪代码的好习惯,把步骤都写出来,我想要告诉你们的是一个好的程序员。
Those kinds of desires are connected also with that American habit of consumption.
这些渴望也是与美国的,消费习惯相关的。
And they got in this habit of, every time they had a bright, happy text, they'd set this in one kind of mode or key-- a major mode--and every time they had a sad one, they'd set it in minor.
于是人们养成了这样的习惯,每当人们书写欢乐,愉悦的歌词时,他们就设定一个调式或调性,即大调,每当人们书写忧伤的歌词时,他们就定为小调
In other words he's saying lawfulness like every other virtue is a habit it is a habit of behavior and the habit of destroying disobeying even an unjust law will make people altogether lawless.
换句话说,他是在讲守法,像其它的美德,是种习惯,那是种行为的习惯,就算是,摧毁与违抗不公法律的习惯,也将让全民无法可循。
And if I'm already in this habit, let my software, let my computer do that thinking for me and bubble up to the top of my attention what I should address first.
如果我已经有这样的习惯,让我的软件,或者电脑为我考虑这些事情,自动的把这,些邮件放到的最醒目的地方---最上面。
We have a habit in this society to think that individual rights, when they drafted the Bill of Rights, was just laid down for us and it's just traveled through time and here they are.
在这个社会中我们习惯于思考人权问题,创始人们起草了《权利法案》,这份草案被我们所珍藏的,历尽世事变迁仍在这里
I'm not certain it's meaningful, unless you are in the habit of giving your furniture personal names.
我不确定它有意义,除非你们热衷于,给你们的家具起名字。
And I would suggest palindrome as a great example of that. That's easy to think about recursively. It's much harder to think about iteratively. And you want to get into the habit of deciding which is the right one for you to use. And with that, we'll see you next time.
其它的问题可能用递归的方式,可以更好的解决,而直接思考可能很困难,这时你就得养成做出,正确选择的好习惯了,下周再见。
I've certainly written code that has this problem, I've tried to use my own code that has this problem, and good to us, right, good hygiene, I'm going to use that word again here, of getting into the habit of writing defensive code up front, it's part of that collection of things that you ought to do is a great thing to do.
我举手了吧?,我当然写过犯这种错误的程序了,我也尝试过应用含有这种错误的代码,不错,好的卫生,我还是要用这个词,对我们有帮助,养成写防卫性,代码的好习惯,是你应该做的,一系列事情之一,也是我们日后要做的主要的事情。
So I'll now start to get into that habit, even though it's a bit of distracting detail, it's just consistent with the expectations that the compiler really has.
所以我现在将开始养成那个习惯,虽然这是一个有点分散注意力的细节,它只是与编译器,拥有的期望是并存的。
应用推荐