Well to avoid homelessness, there's need to first, prevent it. Meaning stopping people from becoming homeless in the first place) And when homeless, we should find smart ways to provide emergency supports like shelter, day programs, food, clothing among others.