Having more programmers will not be a problem for the country, they will only be a problem to those who want to maintain their salaries turning their eyes away from reality of globalization.
This is really quite simple. If there's ways for the most talented to make more money, that's where they're going. The most talented aren't locked into any particular career.
Sure, there will be exceptions, but the overall trend will be undeniable.
And I don't see any reason why an increase in the number of Doctors or Lawyers would cause Hospitals or Law firms to hire incompetent employees.
So fewer people are going to law school. And this is true even at the top end. The most talented people are going into law in lesser numbers.
It's not a theory, it's actual fact.