Getting out of homelessness is extremely difficult. You smell, you can't keep your stuff safe, you can't keep your devices powered on, you can't get constant internet, you may not be able to find a place to sit and work in peace, etc.
It's a catch 22: without a job, no apartment. without an apartment, no job. you need a phone, an apartment/living space, internet, and electricity in order to work as a programmer.