Intermediate Code Review #PR #feedback #communication

Writing Constructive PR Comments

4 exercises — write review comments that explain the issue, suggest a fix, and maintain a positive team dynamic.

0 / 4 completed
The anatomy of a great PR comment
  • What: Describe the issue specifically — reference the code, not the person.
  • Why: Explain the consequence or risk — "this will fail when…", "this makes the code harder to…"
  • How: Suggest a fix or direction — "one approach would be…", "consider…"
  • Tone: Questions invite dialogue. Statements sound like orders. When uncertain, use "Curious whether…"
1 / 4
A junior developer wrote this code review comment: "This is wrong. Use a proper design pattern."

Which rewrite is the most professional and constructive?