He says he is sending the code back to the legislature for a second reading so that it can obtain the support and understanding of Mali's citizens.
VOA: standard.2009.08.27
So I'm going to comment those out, and let's go down to this piece of code, and uncomment it.
那么我会把这些注释上,让我们看看这段代码,取消注释。
I think it's really, really important to write it out or to draw it out or to code it.
我觉得将点子写出来,画出来,编制出来,真的很重要。
"And it is a tax code that says you should pay lower taxes if you create a job in Bangalore,India than if you create one in Buffalo,New York."
VOA: standard.2009.05.04
Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.
现在我要把这段代码,复制到,大文件中的各个部分。
Supporters of the code, more than a decade in the making, praised it as enhancing the rights of women and girls, who they say have been traditionally viewed as second-class citizens.
VOA: standard.2009.08.27
So at this point, now the code's getting a little more interesting, but it's also getting a little bloated.
所以在这里,现在代码变得更有趣了,但是它也显得有点臃肿。
"It is a tax code that makes it all too easy for a small number of individuals and companies to abuse overseas tax havens to avoid paying any taxes at all,"
VOA: standard.2009.05.04
I took those same references the exact opposite way, 'cause I thought that essentially he's referring to the temporality of our moral structure, and how it's just this arbitrary code which our society has decided upon.
我对那些参考的理解完全不同,因为我认为本质上他提到了我们道德基准的暂时性,还提到它们如何只是我们社会,随意决定的准则。
"It is a fact,unfortunately, that the word democracy has become a code word in recent years for regime change and maybe for armed intervention regime change, but at the end of the day, there is a core value that Americans have stood for, that we have to continue stand for, and we can't allow that as well to become a fundamental impediment to improving the relations we are talking about."
VOA: standard.2009.04.24
As shown in this cartoon here, again you don't need to know the details of this, but if you're interested in knowing what's the biological bases of the genetic code this is it.
像这个动画里画的那样,这里你也不需要了解细节,不过如果你很有兴趣想知道,遗传密码的生物学基础
It's just a series of lines of code.
那只不过是一系列一行行的代码
A lot of people don't recognize this as marketing, but there are many other forms that we'll talk about in the class, some of which you probably don't even know about, and it's some of which you probably see but don't code it as marketing.
很多人把这不看成是营销,我们在这门课当中,还会讲其他方式的营销,其中有一些你们甚至都不知道,有些方法你们可能见过,但没把它当做营销
Right. If you look at the rest of that code, gee, it looks a lot like what I had elsewhere.
好了如果你看看剩下的代码,天呐,看上去就像我在别的地方写过的。
You've got to do it above this chunk of code, you've got to do it inside this chunk of code.
你不得不在一大段代码之上来实现它,你不得不在一大段代码之内来实现它。
What does that say? It says if in the code up here I get an exception of that sort, I'm going to go to this place to handle it.
这意味着如果在代码中,我得到一个这样的异常,我能到这里来处理它。
It ultimately evaluates that line of code but just once the stuff inside the curly braces, but the semicolon on the end, essentially has the effect of this.
它最终执行了那行代码,但是只有一次,当那个东西在花括号里,分号放在后面,本质上影响了这个循环。
OK. So. Why did I do it? It's a simple example, I agree, but notice what I just did. It allowed me to highlight, is the code doing the right thing?
这是一个简单的例子,我同意,但是请注意我刚才是怎么做的,我通过它想要强调,代码是做了正确的?
an interpreted language is often easier to debug, because you can still see your raw code there, but it's not always as fast.
解释语言调试起来很容易,因为你可以看到最原始的代码,但是这种语言不够快。
But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.
就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。
Right now, what my code is doing is, it's printing them up for me, which is useful.
它的所有的除数,现在,我的代码要做的就是。
And it becomes a powerful way of reasoning about the code, a powerful way of using the code, so those notions of specs are really important.
以保证你写对代码,这将成为分析代码,使用代码的重要手段,所以规范说明的概念。
It's okay. So this first line of code, I will get it started but then I'm gonna have you take over and actually instruct Philip what to do here.
第一行代码就从这里开始,接下来我会让你,接管并指导飞利浦。
If you can read the code a year later, even code you wrote yourself, it's a good sign that you put good comments in, right?
如果你还能读懂1年前的代码,就算是你自己写的代码,这也说明了你放进去的注释,已经非常好了,对不对?
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.
给大家举些例子,我们一直在强调什么来着?,我们讲过要用注释来说明,你在代码中进行的操作,以便于调试。
With simple branching, how long is it going to take to run a piece of code?
但是在简单分支程序中,执行一个程序,要多长时间呢?
And that does two things: bug one, it helps catch bugs in your code, and secondly it often converts it into a more efficient sequence of instructions before you actually go off and run it. All right?
这有两点好处:,第一是可以帮助你发现程序中的,第二是把你的代码,在运行之前,转换为更有效率的指令的集合,对不对?
You want to write the specs so that everybody does in fact know what this piece of code is doing, and you're writing it each time around.
但是你得养成良好的习惯和编程风格,你得撰写规范说明从而保证,每个人都知道这段代码是干什么的。
And when I'm starting to write lots of lines of code, you know, it's frankly kind of useful to be able to see more on the screen at once without having to scroll.
当我开始写很多行代码的时候,你们懂的,这明显是有用的,当你可以在屏幕上看到更多的代码,而不用滚动屏幕。
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
应用推荐