jb-refine-code

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Refactor Pass

重构梳理

Workflow

工作流程

  1. Review the changes just made and identify simplification opportunities.
  2. Apply refactors to:
    • Remove dead code and dead paths.
    • Straighten logic flows.
    • Remove excessive parameters.
    • Remove premature optimization.
  3. Run build/tests to verify behavior.
  4. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.
  1. 回顾刚完成的变更,识别可简化的机会。
  2. 进行以下重构操作:
    • 移除死代码和无效代码路径。
    • 理顺逻辑流程。
    • 移除冗余参数。
    • 移除过早的优化。
  3. 运行构建/测试以验证行为是否正常。
  4. 识别可选的抽象或可复用模式;仅当这些内容能明显提升代码清晰度时才提出建议,且建议需简洁明了。