I thought about this as well, but really on the long run the cost of renting a dedicated or shared office in my case was just not worth it.
I currently do a mixed approach: whenever I feel I need to 'bike over' to achieve mental separation, I rent a place for the afternoon or the day in a co-working area, or I go to some library (sometimes without internet access, even better :-)
Next year as I move to the countryside with my family, where place is really cheap compared to my current place (Paris/France) we'll keep a dedicated room for product development, and another room for servers/infrastructure (garage most likely).
I currently do a mixed approach: whenever I feel I need to 'bike over' to achieve mental separation, I rent a place for the afternoon or the day in a co-working area, or I go to some library (sometimes without internet access, even better :-)
Next year as I move to the countryside with my family, where place is really cheap compared to my current place (Paris/France) we'll keep a dedicated room for product development, and another room for servers/infrastructure (garage most likely).