Better to write documentation as you might write code:
Be conservative in what you do, be liberal in what you accept from others
"They" is correct here, and always has been. "He" is arguably less correct, since the antecedent wasn't gendered.
It's not ambiguous. When used with a plural it means a plural ("the users, they did this"); when used with a singular it means a singular ("the user, they did that").
Nor has it changed since Shakespeare's time. It had exactly the same dual use back then.
It's not boring, dead trees, produced for some deadline documentation, Sally is doing something with this code! Bob needs to stop sending data!
He or she are far better to see in code comments for the same reason it's fun to encounter latin, or star trek quotes, or even curses.
They doesn't have that effect on me. They tells me the documentation was done grudgingly, likely by a prig. It is likely formally correct and will still say nothing, or be completely obtuse and thick.
At the point where you start synthesizing vibrant life stories out of gendered pronouns with "the user" as antecedent, you might consider instead just conceding the argument.
"them" may feel to Alex like a #SMASHPATRIARCHY moment enabling a world of joy and rainbow unicorns by subverting the domination of white men, but in this example, in a possible multiple writer environment, it seems a poor choice of words.
How about instead of "him" and certainly not the terrible but feel good choice of "them", how about "the writer"?
Also, I am not sure why Alex felt it necessary to describe the dialog as "shit like this". It's a group of developers holding a discussion. I don't see much in it that I would characterize as 'shit'. I see dialog. Attitudes expressed as Alex has here are what holds a lot of progress back by raising defenses and mischaracterizing the honest and sincere efforts of others.