You are looking at the elite of the elites. How many developers work for google in silicon valley? I am sure there are developers in Ohaio that get paid non stellar salaries, also have a mortgage and by the time they are 45 they worry about the future a lot. On Average yes the German developer makes less but probably has better job security , work life balance etc. You make it out as if American developers live a stress free life
I agree. Clearly, not every dev in the US works for Apple or Google. Plus, simply comparing the raw income is flawed as well. I agree with your assumption that overall, German developers have better job security and most definitely the work life balance aspect. I'm a developer myself and I don't know anyone around me who regularly does more than a 40h week. This is excluding those that have started their own company and the occasional deadline of course. Not to mention that our cost of living is definitely not as inflated as it is in SV.
I never understood how a developer making 40-60k euros could survive in a big city like Berlin, until I visited. People are complaining rightly about increasing rent prices, but they're still extremely reasonable, at $1100 a month. Groceries are /dead cheap/ compared to the US (-30% to -40%), and the food quality in grocery stores is frequently quite better.
You get 6 weeks of vacation, and don't have to worry about going to the doctor.
Compare that the the US, where you can be earning nearly 200k, get a few weeks vacation, save some money but everything feels temporary. Go to the doctor too much? You're let go for not meeting deliverables. Need more time on vacation? No. Don't have time to enjoy living where you're living because you're at work dawn to dusk? Well thats the price of not having to worry about rent.
These things can't be underestimated. Coming from a much more capitalistic country to the Netherlands (allow me to assume it's similar to Germany) - the prospects of leading a relaxed life and raising a family here are very good. Yes, it's less competitive. Yes compensation is worse than SV. but if I had to gamble where developers are leading happier lives I wouldn't go with SV (despite the superior weather).