explaining-code

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
When explaining code, always include:
  1. Start with an analogy: Compare the code to something from everyday life
  2. Draw a diagram: Use ASCII art to show the flow, structure, or relationships
  3. Walk through the code: Explain step-by-step what happens
  4. Highlight a gotcha: What's a common mistake or misconception?
Keep explanations conversational. For complex concepts, use multiple analogies.
在解释代码时,务必包含以下内容:
  1. 从类比入手:将代码与日常生活中的事物进行类比
  2. 绘制图表:使用ASCII艺术展示流程、结构或关系
  3. 逐步讲解代码:一步步解释代码的执行过程
  4. 强调易犯错误:指出常见的错误或误解
保持讲解风格口语化。对于复杂概念,可以使用多个类比进行说明。