编辑
2023-09-23
英语学习
00
请注意,本文编写于 595 天前,最后修改于 595 天前,其中某些信息可能已经过时。

目录

This is a question from Quora.

This is a question from Quora.

As a computer science educator if you can teach only one thing to your students what would it be?

中文翻译

作为一名计算机科学教育者,如果你只能教授一件事给你的学生,那会是什么?

  • Computer Science: 计算机科学
  • Educator: 教育者
  • Teach: 教授
  • One: 一
  • Thing: 事物
  • Student: 学生
  • What: 什么
  • Would: 将会
  • It: 它
  • Be: 存在/是

Algorithmic thinking. There's a lot that underlies that, but you fundamentally need to be able to learn how to break problems down in to smaller solvable tasks, and apply tightly constrained instructions to solve those tasks. The rest is just syntactic sugar and math. Really, really important math.

中文翻译

Algorithmic thinking(算法思维)是一种重要的思维方式,它需要学会将问题分解为可解决的小任务,并应用严格限定的指令来解决这些任务。除此之外,算法思维还涉及到一些基础的数学知识。算法思维是计算机科学中的核心概念,它帮助我们设计和实现高效的解决方案。除了语法和数学知识外,算法思维是非常重要的。

  • Algorithmic: 算法的
  • Thinking: 思维
  • Underlies: 构成...的基础
  • Fundamentally: 基本上
  • Need: 需要
  • Learn: 学习
  • Break down: 分解
  • Problems: 问题
  • Smaller: 更小的
  • Solvable: 可解决的
  • Tasks: 任务
  • Apply: 应用
  • Tightly constrained: 严格限定的
  • Instructions: 指令
  • Rest: 其余部分
  • Syntactic sugar: 语法糖
  • Math: 数学

I want to teach my students how to fail. Part of learning to fail is simple programming practice. It's fundiversión to write code, and the temptation is to write dozens of lines of code at a time. It's much less fun to debug code, and when your dozens of lines fails in strange ways you've made your life far more difficult than it needs to be. So take baby steps: write the smallest number of lines that can be tested, then stop and test it. That code will fail, too, but debugging it will be a relatively pain-free process and you get the psychological boost of solving lots of small failures relatively quickly.

中文翻译

"我想教我的学生如何失败。学习失败的一部分是简单的编程实践。编写代码很有趣,很容易一次写下几十行代码。但调试代码就没那么有趣了,当你的几十行代码以奇怪的方式失败时,你让自己的生活变得比必要的困难得多。所以要采取小步骤:写下最少的可以测试的代码行,然后停下来进行测试。那段代码也会失败,但调试起来相对轻松,而且你会获得在相对短的时间内成功解决许多小失败的心理推动。"

  • teach (教)
  • students (学生)
  • fail (失败)
  • relatively (相对的)
  • learning (学习)
  • much less (更不用说)
  • programming practice (编程实践)
  • write code (编写代码)
  • dozens of lines (几十行代码)
  • debug code (调试代码)
  • strange ways (奇怪的方式)
  • difficult (困难)
  • baby steps (小步骤)
  • smallest number of lines (最少的代码行数)
  • test (测试)
  • pain-free (相对轻松的)
  • process (过程)
  • psychological boost (心理推动)
  • solve (解决)
  • small failures (小失败)
  • quickly (迅速)

Source control also has a role to play here. If you commit often, you can occasionally take larger risks secure in knowing that if it doesn't work out, one command will bring you back to a known state.

中文翻译

"版本控制在这方面也起着重要作用。如果经常提交代码,你可以偶尔冒一些较大的风险,因为你知道如果不成功,只需一个命令就能将代码还原到已知状态。"

  • source control (版本控制)
  • role (角色,作用)
  • commit often (经常提交)
  • larger risks (较大的风险)
  • secure (安心)
  • one command (一个命令)
  • bring back (还原)
  • known state (已知状态)

The deeper lesson is divorcing code that fails from the feeling of failure. If your code X produced state Y and you wanted state Z, and you take this personally, you're in for a long semester. If, on the other hand, I can convince you that you've now learned something you didn't know before about code X, then you're much less likely to feel helpless. If you're not feeling helpless, it's a lot easier to try something different and eventually (after visiting states P, D, Q, and aleph-1) getting to Z.

中文翻译

"更深层次的教训是将失败的代码与失败的感觉分离开来。如果你的代码 X 产生了状态 Y,而你想要的是状态 Z,如果你将此视为个人失败,那么你将度过漫长的学期。另一方面,如果我能够说服你,让你相信你现在学到了关于代码 X 的一些以前不知道的东西,那么你就不太可能感到无助。如果你不感到无助,尝试不同的方法就会容易得多,最终(在经历了状态 P、D、Q 和 aleph-1 之后)达到状态 Z。"

  • divorcing (分离)
  • code that fails (失败的代码)
  • feeling of failure (失败的感觉)
  • lesson (教训)
  • personally (个人地)
  • easier (小心的)
  • long semester (漫长的学期)
  • learned something (学到了一些东西)
  • feel helpless (感到无助)
  • try something different (尝试不同的方法)
  • eventually (最终)
  • visiting states (经历状态)
  • getting to Z (达到状态 Z)

Once you've learned how to do controlled failures and divorce programming failure from the emotion of failure, programming starts to become pretty enjoyable and your learning rate goes up by an order of magnitude.

中文翻译

"一旦你学会了如何进行可控的失败,并将编程失败与情绪分离开来,编程就会变得非常有乐趣,你的学习速度将提高一个数量级。"

  • controlled failures (可控的失败)
  • divorce programming failure (将编程失败分离开来)
  • emotion of failure (失败的情绪)
  • programming (编程)
  • enjoyable (有乐趣的)
  • learning rate (学习速度)
  • an order of magnitude (一个数量级)

本文作者:yowayimono

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!