Ask HN: Coworker rejects PR (a month in) because it does not meet his standards
18 pointsjust joined this new team about 1 year into their development. Demoed the work to the team about two weeks ago (half way in). Work is practically complete & runs well no issues. I create PR & assign the two PR reviewers (one my rank another a rank above me). one colleague (the one at my level) leaves some constructive comments no functional changes. The other colleague (one rank above me) says something equivalent to "does not meet our standards" "do not do x pattern since we have used y (which has a huge limitation)" to use Y pattern I would basically need to change most of the logic and it would be about 70% waste. I demoed my code with this pattern two weeks ago and there were no issues/comments from the team. The code is concise and easy to read. I had a call with the colleague and explained the code and why I used it, and showed him some other parts of the codebase where this pattern should be used, his only defense was that "it does not meet our standards because it uses X rather than y pattern, since we used y pattern in the past, we should only use y pattern" while x pattern is very similar only removing the limitation that was causing the code to be difficult to maintain etc. This "standard requirement" is written nowhere as a hard requirement and the codebase is barely one year old, with only one of the codebase founders still on the team.... I'm going to have a chat with the manager tomorrow morning.
Comments (43) 24 threads
Show all comments
Showing thread 1 of 24
Now, I am not doubting that you have come up with a better pattern. But there is merit in having consistency within a code base. Sometimes doing things the same way across modules is easier to maintain, even if it is suboptimal.
If you are new to a codebase, my advice is to stick to the current conventions. When you are three or four months into the job, and you have earned some credibility, then it is OK to circle back and suggest some refactors.
It is also easy to have a myopic viewpoint when you have been on a team a while and are saying "this is how we do things here".
I think the bigger point is that there is a difference of opinion on which pattern is better. This is typically the point when the team would confer together, discuss it, and pick a direction for the future. New team members are excellent at raising these types of questions, so I would not shut their observations down, even if you intend to come back to them later. I'd say instead that this is even more reason to talk them through as a team, because if the old member is right then the new member will learn why. And if the new member is right, then the team was improved by respecting their observation and discussing it. Either way, the team is now all working in the same direction with the same understanding.