Housing on the peninsula is incredibly constrained so most people are priced out. Right now in the East Bay, San Leandro and Castro Valley are probably the best price points for square foot per $. Commutes suck from both places but they are equally positioned between valley and city giving you access to both.
If the bubble continues I would expect that both places will get priced out in the next 2-3 years. At that point you'll have to look at the Tri-Valley area (Dublin, Pleasanton, Livermore) for the affordable price points.