That assumes that cities are being planned and they aren't. And it assumes that people are clear-headed about the practicality of where and how they live.
There are plenty of city planners around and they draw up plans and do a lot of talking, but for the most part, cities "evolve."
People don't want an hour's commute to their job. But that's what they have to put up with if they want a house they can afford. A lot of people in cities have this idea of white picket fences and that means unbearable commutes for a silly old-fashioned notion. I fell into the trap a long time ago in NYC. I know what an hour-and-a-half commute does to a person.
“urban planning” became at thing in the 60s. You could get a college major in it. A friend of mine did, had a 30 year career as an urban planner. In Portland Oregon. Last time I saw him I said “Hey, Great work.”