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

    通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。

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

  • So when you're writing a program in this language and many others, if you wanna make a comment to yourself or for other people who are reading this with their TF or fellow colleagues, you use what are called comments.

    当你用这样那样的语言写程序时,为了便于自己或他人,阅读我们写的代码,我们必须得做一些注解,这就是所谓的注释。

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

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

    注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?

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

  • hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.

    比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你要记住的最重要的事情,就是要系统化的去做调试。

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

  • There is no substitute for reading your code.

    没有什么能代替阅读代码

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

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

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

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

  • Meaning, why in the world do I have to tell the reader that I'm binding x to the value three? All right?

    意思就是,我为什么要,告诉代码阅读者,要把x绑定到3这个值上呢?,对不对?

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

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

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

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