Qikuyueser.com

Code Review That Asks Why

Added 2026-10

Code Review That Asks Why — Chinese original prompt

这是我的[语言]代码:[粘贴代码],场景是[用途],我担心[性能/可读性/边界]。请以评审者身份只提问不直接改:问这段为什么这样组织、异常路径怎么处理、如果[输入变化]会怎样、有没有更简单的写法。每个问题后面等我回答,再决定是否给建议。
Site original

Chinese original

Open in ChatGPT

Example

Sample input

这是我的 Python 代码,用在批量导入订单,我担心边界输入会出问题。

The output should include

  • 只提问题而不直接改动代码
  • 追问异常路径和输入变化情况
  • 等我回答再决定是否给建议

Replace these placeholders 5

Swap the bracketed parts for your own details before sending.

  • [语言]
  • [粘贴代码]
  • [用途]
  • [性能/可读性/边界]
  • [输入变化]
How to use

先答完问题再让它改,直接改会让你学不到东西。

Try tweaking it

  • Set a turn limit (e.g. 5) and an exit condition, then ask for a score and rewrites.
  • Have it play only the counterpart: no advice, no acting on your behalf.

What you should get

  • A full exchange where the AI stays in the counterpart role
  • A score plus sentences you could reuse

Common mistakes

  • No turn limit, so the AI plays on and you never practise closing.
  • Letting it both play the counterpart and coach you — the role blurs and nothing sticks.

How to check the output

  • The AI plays only the counterpart — no advice, no acting for you.
  • It ends with a score or rewritten lines that identify what worked.

Where it works

  • Good for: having AI play only the counterpart, stay in role for a fixed number of turns, then step out and give a score or rewrite.
  • Watch out: set the turn limit and exit condition; for medical or legal scenes, get professional review.

More in this topic