1 karma · joined Oct 8, 2022 (4y ago) · 4 submissions
comment 4y ago · link · parent
> I let it go and know that I'll refactor it when I next touch that code
You accept it and then you rewrite it. Simple but as a dev, I would feel let down by the fact that my work was just temporary. This would make me bitter not more experienced. Also, I didn't learn what was the problem so the same situation make repeat.
If you discussed your opinions talk with the PR authors, then it's them who should rewrite the code, not somebody else.
Do you agree with this?
comment 4y ago · link · parent
However, the risk of being swarmed by PRs was there anyway. We did the following things that lead to the improvement of juniors without significantly compromising the quality of the code. - We had an initial meeting where we agreed upon all the general rules and established a baseline for PR quality. (rrwo mentions such general rules in his comment) - PR had two levels of code review. The first round was reviewed by a fellow junior dev who was to review it thoroughly. This round was focused more and code smells and easy-to-spot bugs. Note that all the code review comments should have a relationship to the baseline we had already established so it wasn't just opinions. The second round was done by the senior himself who made sure that the design and complexity is correct.
This way, the juniors learned from the seniors and from themselves. Ultimately, - we improved ourselves in giving code review - the gaps between juniors' skills shrunk - senior still had the final say
On top of that, you can collect some contentious decisions and have a discussion about them, and incorporate it into the baseline.