You aren't constrained to live in those areas to make a living, though. I'm a senior/principal level developer living just outside of Boston (I can walk to a subway in 30 minutes or just hop on a commuter rail stop in about five) and I can very comfortably afford a 4-bed house on a single salary. And the Boston area is not cheap.