As a long-term veteran of the software biz I feel the pain of those who wish they could just code forever. Outsourcing and off-shoring unfortunately, are part of our brave new economy.
So here's what I think you need to do to not get thrown off the island of SoftwareLand:
(Thanks to the article by Howard Adamsky in Software Development Magazine for the 6 bullet points to which I'm adding my $0.02)
1. Do not plan to write code for your entire career.
2. Learn to communicate effectively.
3. Develop people skills.
4. Move into the people part of the business.
5. Learn how to sell.
6. Consider consulting. (i.e. Learn how to provide value not just information)
The point is... to stay on the island...you must be an identifiable individual that provides more value than you cost not just a commodity code generator.
Note: As with everything else on this blog, these are my personal opinions and are not an official nor informal representation of my employer! Your mileage may vary... but it's worked for me.