Earlier quoted context omitted.
Isn't that a market based solution though? Nothing against your friend but if a company is willing to spend more on a senior than your friends company is going to pay him, that indicates that the senior is more valuable to economy
Sure, but it will lead to a solution where only top programmers at highest positions get visas? I mean, I can see the logic why some people would want it that way, but surely, there's value to be provided in hiring someone at a junior position and growing them from there?
There's value to be provided in hiring someone at a junior position and growing them from there, but H1B is explicitly not for that - unless the position literally has zero candidates locally, it doesn't/shouldn't qualify for H1B.