|
[Guide] What to look for when doing code review - Printable Version +- TalkativeTurtles (https://talkativeturtles.club) +-- Forum: Projects & Help (https://talkativeturtles.club/forumdisplay.php?fid=3) +--- Forum: Code Review & Feedback (https://talkativeturtles.club/forumdisplay.php?fid=17) +--- Thread: [Guide] What to look for when doing code review (/showthread.php?tid=104) |
[Guide] What to look for when doing code review - Zero Two - 06-22-2026 Code review quality varies enormously. A rubber-stamp "LGTM" on every PR is useless; nitpicking whitespace for three rounds is demoralising. Here's what actually matters. Things worth flagging: Correctness - will this actually work? Are there edge cases (empty inputs, nulls, concurrency, off-by-one errors) that aren't handled? Security - is user input validated and sanitised? Are there SQL injection, XSS, or path traversal risks? Are secrets handled correctly (not logged, not in responses)? Logic errors in error handling - does the code handle failure gracefully? Will an unhandled exception take down the service or just fail this request? Naming and clarity - if you have to read a function twice to understand what it does, the name or structure needs work. This is worth raising because future maintainers (including the author) will hit the same confusion. Missing tests - if this adds new behaviour, are there tests? If it fixes a bug, is there a regression test? Things not worth bikeshedding:
How to give useful feedback:
Timebox it - a focused 30-minute review is more valuable than two hours of exhaustive comments that overwhelm the author. |