• That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.

    然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。

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

  • And I want to suggest that what we've done is, we've outlined a lot of the basic elements of programming. A lot of the basic elements we're going to need to write code.

    我想提醒大家我们学习的是,我们学习了很多关于,编程的基础的东西,一些我们编写代码需要的基础的东西。

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

  • I think it's really, really important to write it out or to draw it out or to code it.

    我觉得将点子写出来,画出来,编制出来,真的很重要。

    斯坦福公开课 - Twitter之父Jack.Dorsey演讲:好奇和灵感的力量课程节选

  • You write the source code, the stuff that looks like this and then you save your file, and now you just have a text file.

    比如你们写出像这样的源代码后,保存,你将会得到一个文本文件。

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

  • We want to write a piece of code that helps these guys out, so I'm going to show you an example.

    通过写一段代码,来解决一个这样的问题,接下来让我们来看个例子。

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

  • We won't make you write dramas like Pirandello, but we're going to try make you at least write good code.

    我们的函数中的东西,我们不会让你去写皮兰德娄的荒诞剧,但是我们会教你写漂亮的代码。

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

  • And we hope that at the end of the class, every time you're confronted with some technical problem, one of your first instincts is going to be, "How do I write the piece of code that's going to help me solve that?"

    并且我们希望到了期末,每当你要面对一些,技术问题的时候,你们的本能之一将会是:,“我怎么才能编写一个代码,来帮我解决这问题?“

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

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

    好,这儿我想大家明白的就是,养成解决问题时先写伪代码的好习惯,把步骤都写出来,我想要告诉你们的是一个好的程序员。

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

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

    当我开始写很多行代码的时候,你们懂的,这明显是有用的,当你可以在屏幕上看到更多的代码,而不用滚动屏幕。

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

  • So write the so called source code which is in a specific language.

    用指定的编程语言,写出所谓的源代码。

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

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

    让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。

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

  • > So for anything that's not printf, you have to write out code?

    >,对于不是打印输出的,你需要写出代码吗?

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

  • You need to be able to read that code and understand it as well as write your own.

    你需要有能力,像编写,解读并理解那些代码。

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

  • Imagine instead, you're writing code that's a hundred thousand lines, a million lines, of code. You don't want to write it in this form. All right, and the reason you don't want to do that is, well, several.

    换一个角度来思考,你正在写的代码有几十万行,近百万行,你绝对不想写成这种格式,好吧,你不想这么做的原因有以下几个。

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

  • And this adds, now, a lot of power to the kinds of code I can write.

    这也大大增加了,我能写的代码的功能范围。

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

  • Once you hear that description, it's easy to write the code, in fact. This is a place where the recursive version of it is much easier to think about than the iterative one.

    实际上一旦你听到了大致描述,就能很轻松的写出代码来,在这一点上应用递归来解决问题,比用迭代要容易理解多了。

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

  • First one, when I write a piece of code, especially code that has branches in it, when I design test cases for that piece of code, I should try and have a specific test case for each possible path through the code.

    第一点,当我们写代码的时候,尤其是一些含有分支语句的代码的时候,当我为这些代码,设计测试用例的时候,我应该为每一个可能的程序路径,都设计一个特别的用例。

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

  • What that basically says is the following: in an interpreted language, you take what's called the source code, the thing you write, it may go through a simple checker but it basically goes to the interpreter, that thing inside the machine that's going to control the flow of going through each one of the instructions, and give you an output.

    也就说,如果是解释语言的话:,你要写一些叫做,源码的东西,你写的东西会经过一个简单的过滤器,然后解释器会处理你的源码,解释器会产生一个,逐条读取你的源码的,控制流,然后返回一个输出结果。

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

  • I want to write a little piece of code.

    我想写一小段代码。

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

  • Today, I'm gonna start writing C code with you but I can't just write it and expect it to do anything.

    现在,我和大家一起写C语言代码,但我不指望写出来后就能跑起来。

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

  • And in particular, if I think about that problem - actually I want to do this- if I think about that problem, I'm going to write a little piece of pseudo code.

    关于这个问题尤其要注意的是,实际上当我考虑这个-,问题的时候我想这么做,我会去写一点伪代码。

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

  • How do I write a piece of code for that?

    我该怎么写这块代码呢?

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

  • And that's so you can write small pieces of code.

    这就是你可以编写短小的代码。

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

  • Finally, what code did I write?

    最后,我都写了些什么代码呢?

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

  • In the case of last year we did hand students some code with which they could write programs that talked to Yahoo Finance, finance.yahoo.com, free website.

    在去年的情况下,我们给学生提供一些,能用来写程序跟雅虎财经的免费网站交互的代码,即finance。yahoo。com,一个免费的网站。

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

  • Meaning, I'm just going to write a little loop that does that. All right, so let's go back to our code. That's right, let me pull this over a little bit, so I can see it. And what I'd like you to look at, I'm going to highlight it just for a second here, is those two pieces of code.

    意思就是我只需,写一个小循环就可以了,让我们回到代码,让我们向下拉一点,我才看得见,我希望你看看这里。

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

  • This is telling GC to yell at why you as often as possible, even about the smallest things to really push you to write the best, the most secure, the most correct code possible.

    这说明为什么GCC尽可能地经常地提醒你,即使是一些最小的事情,来要求你能够,编写出最好的,最稳定的,最正确的代码。

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

  • So really, the rule of thumb if you think back to Scratch is -- that any time you write a statement -- -- something that does something in one line of code -- you generally need the semicolon there.

    实际上,根据经验,你们回忆一下在Scratch中,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。

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

  • 00 Now I say while i is less than or equal to 100, I write my code, I sleep for a second.

    现在我指明当i小于等于,我写下我的代码,我休眠一分钟。

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

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

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

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