|
|
|
|
|
by gingerlime
4857 days ago
|
|
"You are recognized by your own skills and good work, and you don‘t have to criticize others for not doing good work. Just worry about your own skills." Reading from inspiring people like Wozniak makes me wonder how to adopt such advice. I am wondering about that almost every time I review a pull request. How do you deal with bad code, poor comments or over-engineering when you see it? Of course you can be nice, but then code and product quality would end up affected. How do you balance this thing?? The person being reviewed knows it's not personal, but it too often becomes a battle of egos. I would be really interested to find ways to become a better programmer by being nicer without bending over or compromising on professional integrity. Any suggestions? |
|
Why? This attitude baffles me. You don't have to be a dick when reviewing someone's code, terrible or not.
> The person being reviewed knows it's not personal
It absolutely is personal if you make it personal, i.e. start personally insulting the author.
"How could you be so stupid to write this this way?"
"This is really idiotic code."
"Sorry, this dumb way of doing things is dumb, and I don't approve of dumb things in my project."
All of the above are personally insulting comments. You should not make comments like them if you value being civil.
There are plenty of ways to reject code without being a complete dick. For example:
"This is pretty neat, but I don't think it fits in here because _________"
"I really appreciate the commit, but _________ doesn't quite work with _______ idea."
"This is a great start. Could you change _____________ to meld better with ________?"
All non-confrontational ways to say "sorry, this isn't good enough" while also offering positive feedback.