I think it kind of depends on the traffic involved. I had a former boss who purposely bought a house approximately 40 minutes away by car. He said not only was the house cheaper, but it also gave him a chance to psych up or cool down after work. However there was limited traffic to contend with.
Right now I am looking for a place to rent and a reasonable commute time by bike is definitely a priority.