A code review is a systematic examination (sometimes referred to as peer review) of computer source code. It is intended to find mistakes overlooked in the initial development phase, improving the overall quality of software.
Good | Bad |
---|---|
"Can you review this function?" | "Can you review this application?" |
"Can you walk me through how this if statement works?" | "Why did you do spaces around the condition of your if statement?" |
"That nested ternary might be more readable as 2 if statements." | "I can't even read this code. What were you thinking?" |
"What would happen if we passed X into the function?" | "I can't believe you missed the edge case of passing X into the function." |
"I think it would help with readability to split these expectations into separate examples. Here’s a reference: http://betterspecs.org/#single." | "This is the wrong way to structure the test." |
What are the differences between the Good and the Bad?
Discuss with your neighbor.
Code Review Sayings
Get over yourself.
You're in this code review to get better at programming. Not to have everyone congratulate you. So, take feedback as opportunities for growth and make sure you follow-up on it and improve.
Remember the feedback is to help you.
You're in this code review to get better at programming. Not to defend your code like a dissertation. Take feedback as an opportunity for growth and be grateful.