I think these articles about extreme commutes are interesting. I recommend you read what Mr. Money Mustache has to say on the subject.
http://www.mrmoneymustache.com/2011/10/06/the-true-cost-of-c...
http://www.mrmoneymustache.com/2011/10/06/the-true-cost-of-c...
That said, selling and buying houses (or changing jobs) on an ongoing basis so you're right next to your job doesn't seem like a great strategy either. And likely not a plausible one, at least outside of a city, if you have a partner who also goes into an office.
> So each mile you live from work steals $795 per year from you in commuting costs.
> $795 per year will pay the interest on $15,900 of house borrowed at a 5% interest rate.