• They come in search of a better life. "Every kid that comes in this program wants to change."

    VOA: standard.2010.04.29

  • That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.

    这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。

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

  • In this blank area over here next to the search tab you can type in any food that you're having, and then the program, unless it's something really unusual, the program will recognize it and then give you a series of options of things it thinks it might be.

    你可以在搜索框的空白处,输入你吃的食物,之后程序会,除非是些稀奇古怪的东西,否则程序会去识别输入的内容,并给你一系列它认为可能的选项

    耶鲁公开课 - 关于食物的心理学、生物学和政治学课程节选

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

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

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