• Now in fairness, that particular problem kind of happened because so many companies ended up running so much code for many more years than the programmers actually thought they would be running it, but the idea is still the same.

    公平起见,那个问题有时会发生,因为实际上,很多企业在这么多年里运行了,比程序员多得多的代码,虽然他们将运行它,但那个构想还是一样的。

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

  • I was being a little lazy on Wednesday in the interest of simplifying the code as much as possible.

    在周三我在那个网站上尽可能地,简化代码的时候,我有点偷懒。

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

  • This is actually a piece of code that is really easy to think about recursively and is much more difficult to think about in other ways.

    这确实是一段用递归思考起来非常容易,而其它方法特别麻烦的代码,这一段代码的意思就是。

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

  • We could certainly implement this much more efficiently by just writing this one line of code, but, again, the key here is to take this step toward decomposing our code into chunks of code.

    我们可以写这一行代码,使代码的执行更有效率,但是,这个关键字用来把我们的代码分解,成一段段的。

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

  • So it's generally called distribution code and whereas for the previous problems that you pretty much started from scratch, blank files you opened up nano and there was nothing there unless you put it there.

    它一般被称作分布码,然而,对于之前几乎要从头做起的问题,在空白文件中什么都没有,除非你在里面写入些东西。

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

  • We hand you a bunch of programming code that we wrote because this is very much the norm in the real world.

    我们给你们一些我们自己写的代码,因为在现实世界中这都是非常正常的。

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

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

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

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

  • I'm gonna zoom in a little more and notice it's pretty much 1, 2, 3, 4, 5, 6, 7, 8, 9 lines of code and that's kind of rounding up because of the white space.

    我现在放大一点,大家会看到,2,3,4,5,6,7,8,9行代码,多亏了空格,这些代码才能看起来如此美观。

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

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

    至此,人们大都是把注意力集中于正确性,观点上:你的代码是不是根据你的意愿,并按照你的要求来执行呢?

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

  • Well, now I go through code very much like what I did for max val in the first place. I check whether it's 0, et cetera, et cetera.

    现在我会捋一遍代码,就像我之前捋maxval函数一样,我会检查它是不是0等等等等。

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

  • Why is this much nice? Well, that's a handy piece of code. Because imagine I've got that now, and I can now store that away in some file name, input dot p y, and import into every one of my procedure functions, pardon me, my files of procedures, because it's a standard way of now giving me the input.

    为什么这样很好呢?,这是一段很好用的代码,因为想象下如果我有了这段代码,我能把它用某个文件名保存起来,后缀是。py,导入到所有的处理函数中,抱歉,我的处理文件,因为这是一个标准的输入方法。

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

  • And you'll find in the end that recursion is a feature of a language, it allows you to map some very obvious concepts like the phonebook tearing in half and half and half and half to actual code without it using some arbitrary human contrived framework like a for loop or a while loop which are much more stilted mechanisms.

    最后你会发现递归是某种语言的一种特征,你可以用它将一些非常明显的思想,比如将电话簿划分为一半又一半,映射为实际代码,而不必使用那些人为框架,像for循环,while循环之类的,那是很呆板的机制。

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

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

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

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