I'm in the opposite boat as you. I am by no means a "fantastic" programmer, but I did indeed receive a job offer for working in NYC a couple of years ago (I now live in an Eastern European capital of about 2 million people). I concluded that living in a shared appt while I'm in my 30s it's not for me anymore, at least if I can avoid it, and there was almost no way for me to live on my own in NYC unless I had commuted from very far away.
I also couldn't fathom putting an entire ocean between myself and all the people and things I love. I see myself living in Berlin, let's say, but living half a world away was just too much for me. I was also well aware of the money I decided to leave on the table when I refused the offer.