This is hardly the case, speaking from experience as someone who hires programmers around the world.
There is no reason whatsoever why a programmer on $30k cannot compete in terms of productivity with a programmer on $300k.
As soon as that guy realises he's worth $300k, he'll go get it on the open market and you'll need to find a new sucker.
The industry already used up the whole of India in the early 00's doing this, and by now they've scraped the bucket all the way back to Iowa.
The goal of the operation from our standpoint should be to get the rest of those remaining guys up to $300k. Not to resign ourselves to accepting $30k.
Also, the labour market is far wider than just India.
> As soon as that guy realises he's worth $300k, he'll go get it on the open market and you'll need to find a new sucker.
That’s an incredibly patronising take. I know that many programmers take higher relative income and freedom in lieu of a higher absolute income and the lifestyle typically associated with it.
Of course those people would rather take the $300k if they could work anywhere. That’s obvious. But who is offering that? Not FAANG, evidently.
I will say though, that such astronomical salaries are only really the norm in Silicon Valley. And with that salary, you have to deal with the entire lifestyle that goes along with it.
Money isn’t everything, which many programmers recognise.
Though I'm not actually in SV, and the last time I went on an interview circuit up there was 2015, so it's possible salaries have gone crazy since then.
SV salaries are a statistical outlier in the global market.
Within the US however, while SV salaries are the highest, that's not the only city with 6 figure salaries as the norm for software engineers. Places like NYC, Boston, and Seattle have been there for a while, and Austin/Chicago/LA are close to, if not already averaging that too. This is especially true if you work for one of the major tech companies in those cities.
Go look at the salaries posted on www.levels.fyi in those cities and you'll see that SV is by no means an outlier when it comes to 6 figure salaries.