last one... save people time. i don't need pleasantries.
Ask HN: What tone to use in code review suggestions?
11–20 of 309 posts
Re: Ask HN: What tone to use in code review suggestions?
#12Re: Ask HN: What tone to use in code review suggestions?
#13Re: Ask HN: What tone to use in code review suggestions?
#14I wouldn’t be happy working in the team where people constantly consider #6 as rudeness. This looks so unproductive and unprofessional to care too much about the tone vs content in programming business.
Re: Ask HN: What tone to use in code review suggestions?
#15Re: Ask HN: What tone to use in code review suggestions?
#16Re: Ask HN: What tone to use in code review suggestions?
#17When collaborating, I like to provide my feedback in a way that allows the person to provide their own perspective.
"What do you think about moving this to a separate function so that we can keep each functions in the class small and focused on one specific purpose?"
When supervising you of course want to allow two-way-communication but you can be more direct, but make sure to use the correction as a teaching moment.
"Please move this block to a separate function so that we keep the functions in the class small and focused on their one specific purpose. See abc.js and xyz.js for good examples of classes that follow this pattern."
Re: Ask HN: What tone to use in code review suggestions?
#18Re: Ask HN: What tone to use in code review suggestions?
#19When I've done reviews, I had some seniority and an organizational privilege to veto some code. I worked from a checklist and a goal (with which the checklist was meant to align, but we knew it was not possible to fully automate those aspects of review). These are my takeaways from that arrangement:
Language like "declined" or "REJECTED" or "can't approve" is discouraging to the individual contributor. I replaced all that with discussion of why I can't allow that, under the obvious subtext of rejection. No need to just rub it in when there is learning to offer.
When indicating required changes, especially where I was more-or-less handing them the replacement code, I always said please. Always.
Most importantly, I gave accurate feedback. I took the time to be sure I was right before I wrote a review. Otherwise what's the point. Even simple patches got tested.