The worry that we're running out of programmers is rather overblown and proposed solutions are mostly counterproductive. We're not living in a planned economy - salaries and free movement of people will not allow there to be a gap for long. This is one of the greatest strengths of capitalism and if that sounds tired and obvious it's only because it is but that doesn't make it less true.