"...where a future for a programmer, entrepreneur, or a computer scientist looks pretty bleak."
Perhaps I misphrased it.
Efforts definitely count, and you can build a successful company anywhere(almost). That being said, if you're aiming to maximise the chances of success for a tech company, the US, specifically SV is your best bet. No other area in the world has the same level of VC and talent.