Compared to Silicon Valley (or even the US east coast) Germany as is low-cost country. Developers earn only half the US salary - and can live well with it ("free" (well, tax paid) healthcare, schools, universities,...)
And since a few years, finally a decent immigration policy!