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. 强调注意事项:指出常见的错误或误解
保持解释风格口语化。对于复杂概念,可以使用多个类比。