17 March 2018

remedy to recurring code review comments

Recently in one the interview, I was asked: "how would you handle a situation wherein which your junior developer is often making the same coding mistakes and getting same code review comments?".

I without thinking much answered it and I think the interviewer liked it.

The way I answered it.

If a developer is a making same coding mistake often, it’s more likely that he/she doesn’t know why it’s a mistake. Will sit with the colleague and explain him/her why it’s a NOT a best coding practice. After we understand why that is not a GOOD code, then it less likely that we do the same mistake again!!! (at least anytime soon!)

Thanks Ranga