In most other cities (even just going an hour north to SF) it's fine. "Software engineer" used to have a nerd stigma a generation ago, but that hasn't been the case in a decade or more, and nerds can do fine with women.
It was pretty miserable while I was in it, though. Silicon Valley is not really a place where the culture encourages "branching out a little", nor does it attract people who are interested in that. This is self-reinforcing: people who were born here and aren't interested in tech tend to move up to SF/Berkeley/Oakland while they're single, which have greater cultural diversity.
I was in some sense lucky: I met my wife when she had recently moved back from Peru and was re-establishing her career here. Another year or so and she probably would've moved to Berkeley.
That's condescending. Maybe I choose my interests for my enjoyment rather than other peoples'.