There's a discussion about labor to be had here and it should be focused on domestic labor abuses. Unfortunately, these things are rarely discussed and H1B and other abusive programs only rarely flare up in the news, everyone sees them for what they are, but there's no political will to fight them.
Immigration's external costs are ignored as well. The source country is constantly having a brain drain, for example. Its amusing to me to see HN'ers with this pretentious global perspective who have no problem taking the top 20% of the people from countries that need them and thinking themselves humanitarians because they got them a coding job in the valley.
If we started being serious about cutting immigration, there would be more political pressure for these foreign countries to get their shit straight. More local entrepreneurs, more devs focusing on local problems, etc. The status quo right now of fleeing to Western ecomomies just guarantees poor outcomes in poorer nations. We shouldn't be proud of that. Jogesh shouldn't be writing disposable freemium games for some rich guy's son who thinks himself "the next Steve Jobs," he should be helping Indians and the Indian economy with his skills.