That's sharing a studio with someone or a 1BR with 3 others. When you actually factor in costs by all metrics you're better off making high 5-figures or low 6-figures in any non-urban area than you are being anything but the top 2-5% of software developers in the Bay Area.
A 1 hour commute costs you 2 hours a day. That's almost like working an extra 7 weeks a year with lower productivity and increased wear and tear on you.