It's not perfect though as you get ridiculous situations like social housing in modern apartment blocks in the middle of London that no average worker could afford.
Or separate entrances for the social housing flats and regular flats in the same building (regular as in how it was intended to be built, not with extra walls to create extra rooms or with no living rooms at all).
Or with social housing residents being asked to pay separately for communal areas maintenance (because the government doesn't pay for that but you can't really stop people from walking on the grass) that they didn't ask for.