Poland has revised its criminal code to include a ban on symbols of communism.
VOA: standard.2009.12.16
You don't have this particular code on your handout, you do have a code that uses the same concept.
在你们的讲义上没有这种代码,你可以看到相同概念的一个代码。
Well I ought to be able to do that by simply generalizing the loop. And that's what the next piece of code on your a hand out shows you.
好的通过生成这个循环,我应该能够达到目的,这也是你们的讲义中下一段代码。
Mr.Toure recognized those who had worked on the legislation and assured them that this new code, nearly a decade in the making, was not being abandoned entirely.
VOA: standard.2009.08.27
So I've got one more piece of bad code on this point and this is buggy five dot c. So as a comment on top bug of this file challenges, what is, in fact, the bug.
所以我在这里得到了一块很烂的代码,这个是buggy5,c,所以作为这个文件顶端的注释,那实际上是那个。
The structural moment of concentration on the code for its own sake cannot be avoided, and literature necessarily breeds its own formalism.
集中在代码上的结构瞬间,因为它本身的原因不可避免,文学必要地导致了它自身的形式主义。
Chapters 17 through 26 then are a block of material that's referred to as the "Holiness code" because of its special emphasis on holiness.
7章到26章是一块,被称为“神圣的代码“的内容“,因为它侧重于神圣。
I can change everything overnight; it does happen. I put that in for a reason because sometimes some of you have not taken a physics course and you don't know how to do well in physics and slowly you catch on and by the time it's Final exam you crack the code; you know how to do well.
我能一夜之间扭转乾坤,确实有过这样的例子,我这样做是因为,有时你们中有人可能以前没上过物理课,不知道怎样学好物理,但慢慢地你赶了上来,到期末考试的时候,你忽然灵光一闪,考起试来得心应手
This seems a little weird, but bear with me for second, in fact, I've given you a little piece a code to do it, which is the next piece of code on the hand out.
这看起来有点奇怪,但是先听我说,实际上我给了你们一段做这件事的代码,就是发给你们的纸张的下一段。
All right, those pieces of code inherently involved something that does depend on the size of the input, or on the particular input.
好,这些代码,肯定会涉及到一些,与输入的大小相关的东西,或者说与特定输入相关。
I was being a little lazy on Wednesday in the interest of simplifying the code as much as possible.
在周三我在那个网站上尽可能地,简化代码的时候,我有点偷懒。
Having now used this pseudo code to line things up, I can start putting some additional structure on this.
用伪代码把这些事情串起来后,我可以开始进行,一些结构方面的优化了。
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.
它最终执行了那行代码,但是只有一次,当那个东西在花括号里,分号放在后面,本质上影响了这个循环。
In general, good programming style says you put in comments that are going to be valuable in helping you as a reader understand what's going on inside of the code.
通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。
It's deliberate that a lot of the examples in lecture are fairly short and bite-size so that you can actually focus on pulling out the key ideas without getting distracted by line and lines of code.
很多的演讲中的例子,是短小的,因此你们可以集中于提取其中的主要思想,而不是被一行行的代码给分心。
If somewhere later on in the code it shifts to string, I might not be manipulating that and getting actual values out, but not what I wanted, and it's going to be really hard for me to chase it back.
然后后面的一些代码,把变量类型变为了字符串,我可能不会通过实际操作,去取得实际的变量的类型,但是这并不是我想要的类型,而且对我来说把类型,变回去也很困难。
So, we'll talk about this other axis of style on the course, writing code that looks pretty and as well aesthetically laid out.
我们来讨论一下这个中心对称的程序,这程序写出来的结果很漂亮,完全按照美学角度摆放。
Thus far and in Scratch will pretty much focus on the idea of correctness: Does your code work as we asked it to and as you intended it to?
至此,人们大都是把注意力集中于正确性,观点上:你的代码是不是根据你的意愿,并按照你的要求来执行呢?
It's words to you, or to the reader of the code, that are telling you what's going on inside of this code. OK?
注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?
So if you're coming from prior background, your code might work a little differently on a different system if you don't use those flags.
如果你来自一个先前的背景,如果你们没有使用这个版本标志的话,在一个不同的系统中,你的代码可能运行地不太一样。
So, it frees you from some of Apple's tethers and this was the code that circulated on the Internet iPhone with which people could crack their iPhones.
这样我们就从苹果的约束下解放出来,这些代码是在网站上流通的,使用它们可能损坏你们的。
So there's a return branch on every possible path through the code. And that's valuable, it's something you want to think about as your right your own.
所以代码中每条可能的路径,都会有一个返回值分支,这是非常有价值的,当你自己写程序的时候也应该考虑这件事。
Let's run merge sort on it, and then we'll look at the code.
让我们在这个列表上运行归并排序,然后我们在看一下代码。
Right, and just to get a sense of this, let's look at a simple little example, so on your hand-out, you'll see I've got a little piece of code that says assuming I've got one of these points, I want to do things with it, for example I might want to add them together.
这些数组中的一个,你怎么能够知道,它是哪种类型的呢?,你怎么知道它是以笛卡尔坐标,表示的还是以极坐标,形式表示的呢?,你没有可以用来区分的东西,你没有说明这种信息,聚集实际上的意义。
You can imagine having many lines of code where all of a sudden your closed quote is on the next line all the way on the left.
你可以想象一下,这有很多行代码,突然一个后引号,移到下一行最左边。
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.
当我开始写很多行代码的时候,你们懂的,这明显是有用的,当你可以在屏幕上看到更多的代码,而不用滚动屏幕。
So the interpreter is simply operating directly on your code at run time.
因此解释器在运行程序的时候,会直接的对你的代码进行操作。
And what we'll be doing is, early next week we'll be distributing code, which we'll ask you to study, about two or three pages of code, and then on the final we'll be asking you questions about the code.
我们现在要做的就是,在下周前半部分我们会发一些代码,给你们去研究,大概有两三页纸,然后在期末的时候,我们会问你一些有关代码的问题。
OK? And in fact, if you look at the code up here, and it's on your handout, the very first one, x 1, right here- if I could ask you to look at it-- is a piece of code to do it. And I'm less interested in the code than how we're going to analyze it, but let's look at it for a second.
实际上,如果你看看,你们课堂发的材料上面的代码,第一页上的,就是那-,大家请看看实现的这一部分代码,我不太关心,我们会怎么解释这个代码,首先让我们先看看。
And what line of code am I on now?
那我现在在伪代码的哪一行呢?
应用推荐