QA Friday 2016-Jul-01
Take Up Code - A podcast by Take Up Code: build your own computer games, apps, and robotics with podcasts and live classes
Categories:
I always feel pressure and embarrassment when doing code reviews. What should I do? One of the best things you can do is discuss how you feel with your manager. A good manager will help you overcome your problems. That’s what they’re supposed to do. When somebody on a team has a problem, then it can affect the whole team. Removing obstacles like this helps everybody. It’s possible that your problems are due to another teammate. That’s something that your manager can help with too. If you have a team or even a single person on a team that reacts strongly and loudly to anything other than glowing praise, then it’s going to be difficult to review code. It’s the job of the manager to correct problems like this too. One thing you can do if you’re just joining a new team is to read previous code reviews. Get a feel for how other team members express themselves and how they react. Many times, a misunderstanding is caused just because we can mistake a person’s normal behavior as being directed at us instead. Reading old code reviews will help you learn who is shy, who is outspoken, who responds well to questions, and who needs facts. We’re all different and there’s a common lesson taught in early grade school called the golden rule. It says to treat others the way you would like to be treated. Unfortunately, that rule is backwards. Following it can sometimes work and sometimes cause even more problems. Remember, we’re all different. That’s the key. Don’t treat people the way you want to be treated. Treat them the way they want to be treated. Within reason, of course. What I mean is, let’s say that you like direct, to-the-point communication. If it’s wrong, you’d rather somebody just tell you right away even if the whole team knows. This lets you fix it and move on. Another person might be horrified by this and may prefer a question to give them time to think about it and change their mind on their own. If you try to treat others the way you want to be treated, then you’re almost certain run into problems that are unrelated to any technical code review points. Listen to this episode to hear my thoughts on the following questions about code reviews: What if I’m too busy with my own work? What if I don’t find anything wrong? What if I don’t find all the problems? What if I suggest something that turns out to be wrong? What if somebody else finds something I should have caught? What if I catch a mistake that the developer should not have made? What if this is not the first time for the same problem? What if the developer pushes back? What if my comments are ignored? What if my comments cause hard feelings? You can also read the full transcript of the episode below. Transcript One of the best things you can do is discuss how you feel with your manager. A good manager will help you overcome your problems. That’s what they’re supposed to do. When somebody on a team has a problem, then it can affect the whole team. Removing obstacles like this helps everybody. It’s possible that your problems are due to another teammate. That’s something that your manager can help with too. If you have a team or even a single person on a team that reacts strongly and loudly to anything other than glowing praise, then it’s going to be difficult to review code. It’s the job of the manager to correct problems like this too. Every situation is different and in a way you can almost think of this entire episode as sort of a review. Not a code review. But a review of possible scenarios that I try to think of and then ways you might be able to learn and adapt. Eventually, code reviews should get better over time but some aspects should remain. ◦ For example, nervous feelings can help as long as they’re not too strong. ◦ Your confidence will improve over time. As long as you take each review as a learning