I agree, irregardless of the big picture, that is always sad on an individual level.
BTW I think the way to at least partially combat outsourcing in rich countries is through agreeing to work for lower wages (which would still be higher than national average, I'm not advocating becoming working poor). Arguably, that's what's already happening, and that's one of the reasons why programmers don't earn nearly as much as some of the other professionals.