My view is, tough titty. They can hire a bright young fellow from Iowa, train him, and keep their workforce 100% American. There is nothing a foreigner can do that an American can't do ten times better. We have a country with 300 million people, a well-educated workforce with a high number of college students, and these tech companies say they can't find enough eggheads? Hogwash!
Personally, I hope that treacherous Microsoft and Google lose a couple billion for depriving Americans of jobs. If they don't employ Americans, they are better off going bankrupt. Executives need to learn that what comes around, goes around. They enjoy the safety and comfort of living in America, yet transfer most of the jobs overseas. Is it a big surprise that American workers are not sympathetic?