I think being a programmer does help the situation in one respect: by having a large salary, you also pay commensurately more in taxes, which could be used to pay for social services.
One reason the quality of life is so high in Germany is that it is, as far as I can tell, a nation of engineers. With an economy based on high value products for export, Germany can afford one of the shortest work-weeks in the world and some of the best social services.