That depends what you're doing at the time.
When you have a well known objective and a lot of code to produce solitude can be a boon.
But yeh, when you the objective is a bit fuzzy and needs to be clarified with others then you need to be there. Same when you need feedback on what you've done so far.
Alex
"There is a cult of ignorance in the United States, and there has always been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
-- Isaac Asimov