Jm2c but I think the harsh truth is that US while having a decently sized population of good software engineers, it is still nowhere near the required amount.
Thus, many companies would rather give 150/200k to someone who's actually good at it and will be impressed by that money rather than some half assed US graduate who only went into SE because he wanted a cushy well paying job.
The USA currently potentially hasn't enough programmers. If the market tide changes, one of course wants to be able to send these superfluous work migrants back to their home countries.
This solves many, many problems, including where should laborers live, fairness in interviews, etc.
How do you reconcile that with all of the SWE layoffs in the past few years?
This is not true now, if it ever was (maybe for very short periods); there is tremendous competition for every good SWE job out there, and has been for a long time.
> Thus, many companies would rather give 150/200k to someone who's actually good at it and will be impressed by that money rather than some half assed US graduate who only went into SE because he wanted a cushy well paying job.
The idea that Americans wouldn't fight tooth and nail for these jobs is just idiotic.
What do you think is going to happen to your bargaining power as an employee when your employer has an infinite workforce to draw from?
To assumption that there is a finite amount of work in the economy is called "lump of labour fallacy" in economics. It's not useful to ask "What if X were infinite and we held everything else constant?"
The two philosophies are not only not incompatible but are necessary to maintain our standard of living. Closed borders, protectionism, and relying on individual bargaining power is another path to a similar end so long as you can keep the US on top.
You ever consider that it's because those people are pro-workers everywhere and not just workers nearby? So yes enabling foreign workers to improve their lives by coming here makes perfect sense.
> What do you think is going to happen to your bargaining power as an employee when your employer has an infinite workforce to draw from?
I mean that's like saying "what do you think is gonna happen to your rights once all the slaves are free". The answer hinges on whether we continue to operate under the government that's comfortable with exploiting its citizens.