The H1 Visa program is a complete scam... it is meant ONLY for finding workers when NONE exist in the US for the job (IE outdated tech that all the folks who do it have retired etc), the idea you can’t find coders in the US is nonsense.
The H1B program is to skilled labor what illegal immigrants are to unskilled.
The very idea that a US employee is training his replacement that is an H1B visa holder should never be happening.
Saw all this coming years ago. That’s why I ramped up on skills that neither a machine, computer or foreigner could do. I’m certified in English which helps too.
I came here on an H1-B and it is an injustice that someone with my skill had to be subject to a lottery. Luckily I won the lottery but a low level techie with 1/5 the salary could have received the honor of working in the US before me.