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