r/AskProgramming • u/PhilosopherNext1448 • Aug 20 '26
advice on reviewing code written in languages you know little about
I have 15 years of experience in Python, C# and C++ and recently joined a team that writes code exclusively in Go (they made a full switch from python to go shortly after I signed the contract).
Everything is written by Codex, and all the team does day in day out is prompting and pushing out new pull requests every few hours. I got hired as a senior engineer and while I can definitely help out with system designs, architecture, sprint plannings, stakeholder management I'm a bit at a loss when I'm asked to review my colleagues code. Apart from the fact that the pull requests are way too big (1000-2000 line changes), and mix multiple features, bug fixes and refactors together, there's an expectation to have it reviewed within a few hours because a PR that sits still for a day cannot be merged anymore because of too many merge conflicts.
So I'm trying to address the review culture a bit, but I'm more struggling with how to approach code reviews in this genAI age when you're not that familiar with the language itself.
Any ideas or experience would be helpful :)
26
u/NoTutor4458 Aug 20 '26
the language is probably the least of your problems. the real red flags are 1000–2000 line PRs with multiple bug fixes and features
6
u/LunkWillNot Aug 20 '26
First step, reject any PR that mixes multiple features, bug fixes, and refactors.
Second step, let them explain their PRs to you. If they can’t, reject.
Inform your manager before that that’s what you are going to do.
If it turns out they won’t let you do that or won’t have your back on that, chill, go with the flow, and know that any consequences are not on you.
6
u/FlapyG Aug 20 '26
run
4
u/knouqs Aug 20 '26
I'll add to the list of people saying that code changes that are thousands of LOC are bad. A PR should fix one issue exclusively.
1
u/BranchLatter4294 Aug 20 '26
If you know several languages, it should not be a problem to pick up a new one.
3
u/SurpriseItsJustLewis Aug 20 '26
Wow that sounds horrible aha.
Know your discipline is something that comes to mind for me. If you haven't got the experience to do these code reviews and they are as large as you say. Then I would offload the responsibility to someone more capable than yourself while you do exercises in Go for a bit every day.
Just to add my reasoning: It's gonna take you much longer than someone else and you'd be more effective in your areas of expertise.
2
u/marrsd Aug 20 '26 edited Aug 20 '26
You're not going to learn anything reading AI. Find an open source app written in Go - preferably one that you use - and read its code.
As for the requirements of your business, they're dreaming. The best you can do is get AI to review it for you, use your 15 years of experience to tell it what to look for, and hope for the best! Also, challenge its feedback, wait for it to contradict itself, and force it to deep dive to get to the right answer.
Ultimately they need a reality check at some point. Start feeding back early. Take notes. Observe failure. Make a case for improvement. Be positive and solution oriented in your criticism and recommendations.
2
u/TheMrCurious Aug 20 '26
Ignore GenAi. How would you solve this if GenAI was not involved?
2
u/mtimmermans Aug 21 '26
You can have Claude review them.
1
u/CappuccinoCodes Aug 20 '26
It can't be done. You can't review code in a language that you don't know. Whoever gave you that task has no idea.
0
u/throwaway8u3sH0 Aug 20 '26
Not a fan of unaided manual review. But if you don't have a good system set-up for automated review, you can start by pulling the branch and having your AI comment all the changes, making analogies to (language you already know) whenever it can.
-2
u/CS_70 Aug 20 '26
Using a proper AI to write code and then review it by hand is like buying a ferrari and then decide to push it by hand.