explaining-code
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen explaining code, always include:
- Start with an analogy: Compare the code to something from everyday life
- Draw a diagram: Use ASCII art to show the flow, structure, or relationships
- Walk through the code: Explain step-by-step what happens
- Highlight a gotcha: What's a common mistake or misconception?
Keep explanations conversational. For complex concepts, use multiple analogies.
在解释代码时,务必包含以下内容:
- 以类比开头:将代码与日常生活中的事物进行比较
- 绘制图表:使用ASCII艺术展示流程、结构或关系
- 逐步讲解代码:分步骤解释发生的过程
- 强调注意事项:指出常见的错误或误解
保持解释风格口语化。对于复杂概念,可以使用多个类比。