• Even as women's groups applauded the code as a way to combat the forced marriage of young girls and give wives more economic power, many Mali women opposed it as an attack on traditional values.

    VOA: standard.2009.08.27

  • In fact, this example would compile because you can use curly braces in this way to encapsulate lines of code, but realize for now, that, not good.

    实际上,这个例子可以编译,因为你可以用这种方式来压缩代码行,但是请认识到,那个,不太好。

    哈佛公开课 - 计算机科学课程节选

  • So, one simple way to code intensity is the number of neurons firing; the more neurons the more intense.

    影响反应强度的一个简单因素,就是产生神经冲动的神经元数量,神经元越多,反应强度越大

    耶鲁公开课 - 心理学导论课程节选

  • It's a way of breaking the code up into modules. Modules that makes sense on their own. Modules that we can reuse in multiple places. Modules that, if you like, Isolate components of the process.

    能将代码分解为模块,模块能够独自运作,我们能在很多地方再利用这些模块,如果你喜欢的话,模块可以被看作是过程独立的组成部分。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And because there's nothing else in the code at that point, the program should just quit naturally in a good way. Yeah?

    因为在那个阶段的没有其它的代码了,这个程序将以一种比较好的方式自然地退出,请说?

    哈佛公开课 - 计算机科学课程节选

  • Which is a way of reminding you that I need to think as I write the code about what are my expectations from the input, and how might I enforce them.

    通过这个我在提醒大家,在写代码的时候,要搞清楚对输入的期望,并思考下如何执行这些期望。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Because if I don't specify a name for this input, I have no way of actually referring to it in subsequent lines of code.

    因为如果我不给这个输入定义一个名字,在随后的代码中,我就没有办法使用它。

    哈佛公开课 - 计算机科学课程节选

  • 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.

    以保证你写对代码,这将成为分析代码,使用代码的重要手段,所以规范说明的概念。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • But in general, the choice of variable name is a great way of commenting your code.

    但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • This also, by the way, in some sense, gives me the beginnings of my comments for what the structure of my code is going to be.

    顺便说一句,在某种意义上这也是我,对于我的代码结构的,讲解的开始。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Those are fancy terms. Decomposition is a way of putting structure onto the code.

    这些都是诱人的术语,分解是一种将代码结构化的方法。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • 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.

    你可以想象一下,这有很多行代码,突然一个后引号,移到下一行最左边。

    哈佛公开课 - 计算机科学课程节选

  • So let's look at the second example, all right, I keep doing that -- this piece of code from here to here gives me a way of now creating a hash table of size 256.

    所以让我们来看一下第二个例子,好的,我继续做那件事,这段代码中从这里到这里,是创建一个大小为256的哈希表。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Spelling. These are just dumb little things to look for. Did you spell all the identifiers the way you think you did. The problem is, when you read code you see what you expect to see.

    拼写错误,你可能得找找这些粗心的小错误,你是否拼对了标识符,问题是当你阅读代码的时候,你看到的都是你以为的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I could do this, by the way, by running the code and putting print statements in various places as well, but the hand simulation is valuable, so let me just start it.

    做了正确的更新,顺便说一句,我可以通过在很多地方,放置print声明来达到这个目的,但是手工模拟也很有用。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • You open what we call the "text editor," the specific one we used on Wednesday was called Nano, -- which is similar to Notepad or TextEdit -- totally simple, kind of dumbed down but in a useful way so that you can just focus on writing code and not learning some new interface.

    你先打开那个“文本编辑器“,就是我们周三用过的叫做Nano的编辑器,这个跟写字板和记事本差不多-,非常简单的,只是通过一种有用的方法而进行精简了的,所以你们可以把注意力集中在编写代码上,而不需要学习一些新的界面操作。

    哈佛公开课 - 计算机科学课程节选

  • What's the point? Again, you can have things that are syntactically legal but not semantically meaningful, and static semantics is going to be a way of helping us decide what expressions, what pieces of code, actually have real meaning to it. All right?

    重点是什么?重申,你可以有东西在语义结构的逻辑上有意义,但是在语义上无意义,而static语义,将是一个帮助我们,决定哪些表达,哪部分的代码实际上,有意义的途径,好么?

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定