If you're a fantastic developer in Ukraine, India or China and have very limited needs (compared to a guy with a family and kids), your disposable monthly income net of taxes, rent and commute expenses is still likely to be higher in Silicon Valley than Ukraine, India or China.
A rational decision then would be to move to Silicon Valley arbitraging the costs as much as you can (living with roommates, commuting by Caltrain, BART or a plain walk, relying on company-provided lunches and dinners vs going out), until the music stops and the industry hits a headwind.
Then one can still return to comfortable living in Ukraine, India or China, but with a much nicer savings account than before.
A rational decision then would be to move to Silicon Valley arbitraging the costs as much as you can (living with roommates, commuting by Caltrain, BART or a plain walk, relying on company-provided lunches and dinners vs going out), until the music stops and the industry hits a headwind.
Then one can still return to comfortable living in Ukraine, India or China, but with a much nicer savings account than before.