Go easy on this code review, she is a woman after all

What is the appropriate response if a fellow woman pulls you aside and says "Go easy on this code review, she is a woman after all and already gets a lot of shit."? Of course it is "Sure, this will be my friendliest code review ever!".

Wait, what? Shouldn't we treat all people equally? Why is she asking me to make an exception for her?

Unconscious bias

The first problem is that we treat people differently if we know that they are a woman for example. This is called unconscious bias and there are numerous studies that our judgment changes as soon as we know we are looking at the work of a woman.

Unfortunately this happens unconsciously, but we can make ourselves aware of that and counter the effect. Try to go the extra mile of friendliness. Be extra polite, extra professional, extra supportive. That should make up for the bias gap and bring your code review to the same level of fairness as you would do for a man.

Harsh code reviews

If somebody asks you to go easy on a code review it means that you usually don't go easy on a code review. So there might be a problem in general with your code reviews. Are you harsh for no reason? If I read your code review do I feel appreciated or do I feel embarrassed? Tone of language is key here and also thanking them because they want to make a contribution after all. Are you just picking on some details, but the approach they took is fine? Tell them that: "Your approach looks good and I would do this the same way, here are just some minor nitpicks ...".

Be patient - people might be new and just starting out on the project. Sometimes it might feel that after all the time that you spent on code review you could have written it yourself by now. But teaching people is a powerful concept, you are sort of cloning your skills into their brains. This will pay off many times during the lifecycle of your project.

She already gets a lot of shit

Please believe that. The amount of harassment and annoyances women and other marginalized people receive is well documented. Reacting to that with "But I will treat all people equally!" makes you at least look ignorant, it might also make you a silent bystander to unfairness going on. Treat this as a serious warning sign - somebody brought up problems directly to you.

You are approachable

The good news: it seems you are not a total jerk and people trust you enough to talk to you about this. They are confident that you might listen and help. They appreciate you. You have the opportunity to listen and understand what is going on, which also means that you suppress any immediate knee-jerk reaction. You want to be supportive, right?

With that in mind we can even improve our response to "Go easy on this code review, she is a woman after all and already gets a lot of shit.": Sure, this will be my friendliest code review ever! Let's also talk again later what we can do to stop all the shit she is getting.

P.S.: Oh yes, I'm probably also doing some awful code reviews, so I'm also addressing this to myself.



Sounds great for making everyone feel included and safe. I just hope I never have to use your software if that's the attitude you have towards code quality.

In reply to by Kristofer Tengström

You mean you only get good quality when people review each others code with asshole comments? Being friendly and polite does not mean that you are not able to criticize - but it means that you need to provide reason.

I remember a talk Linus Torvalds gave about Git and why he thinks it is better than Subversion. He had all the reasons layed out so that people saw the advantages, but he still called the Subversion people morons. Totally unnecessary asshole attitude - it seemed so desperate and pathetic. At that time of course the market share of Subversion was much higher than Git, so to me it seemed that he needed to add an extra non-technical punch to be heard. Like a crying infant that does not feel in control and needs the attention.

It also sounds like you are working in a quite toxic work environment, probably the assholes at your company are being justified because they supposedly produce good quality code? What about the other people that are not able to produce good code because of them?

In reply to by Kristofer Tengström

Nowhere does klausi suggest code quality should be compromised. The article advises on how to write reviews from a communication perspective, how to mentor, and how to show leadership.

In reply to by Kristofer Tengström

Well, that sounds harsh! ;)
But if the code quality is crap, you can still friendly reject it with a response like "Thanks a lot for your great work! The following lines in your code can cause X in situation Y. Maybe you want to rewrite it to something more like this [example]?"

In reply to by Kristofer Tengström

... after all, if we are not supporting to each other, then stuff is getting worse, the world is already unfriendly enough to many people, not just to people that do not understand that it is professional behaviour towards people that keeps up the good work.
The author was not talking about quality of coding, but about quality of building a relation to a fellow coder. If we are able to make that, we will get a lot of people that code, and the quality will improve.
If the attitude towards a code review is NOT like that code will become worse, so @Kristofer: you got it wrong. - And I am not meaning to slapping your face now.
Code quality is one thing that needs to be treated professionally, but it doesn't get hurt if it is corrected rudely, people are one thing to be treated professionally in a way that does not hurt them.

@klausi: thanks for that piece

I'd like to add to the article the following:

Don't worry too much if your review maybe isn't the friendliest possible. We are human after all. Somedays we happen to be a bit petulant (like when we had a bad night of sleep). But do apologize if you're sure that you came of too harsh.

Making an awful code review every now and then is fine, as long as you are aware of it. Go easy on yourself!