Maybe companies could build semi-permanent barracks near their offices or something? :p
Take a page from the US Army, they know how to rapidly set up living quarters for large numbers of people.
http://upload.wikimedia.org/wikipedia/commons/3/3c/Military_...
Would it be nice to live in such a place? Maybe not, but it would eliminate rent and the commute time. Also, living in a code-tent seems pretty bad ass (at least after it's over).
A more humane version might be to just rent a large villa and stuff all the programmers in there. Aren't there a lot of abandoned McMansions in the US?
Point is: from an operations perspective, there should be a more optimal solution than pissing away $50k a year on single-bedroom apartments. If a company were to come up with a smarter solution, the programmers could make more net money while being paid a lower gross income.