Same basic trend we saw with industrial revolution. People lost their somewhat skilled (for the time) jobs to steam powered machines. As the recent election also put front and center, we're also competing with the entire planet for jobs. How do we compete with the Terminator and the foreigner bogeyman? You don't directly. Nations build a social safety net that cushions the churn of jobs, universal healthcare so that the stress of loosing your job and healthcare doesn't kill productivity, cheaper (or free) access to entry level college education (community college), and lastly nations need to provide geographic mobility (getting from the place without jobs to one with jobs isn't easy when your bank account balance is -$40 USD). The net effect of all these suggestions would likely be a good bump in long term national GDP and growth...we could likely implement most of them using less than 1/4 of our $600 billion yearly defense budget.