It depends on how intense your course is! I live in the library so commuting is not really an option, but you could do public transport and revise or work on the train, it helps if you lectures are clumped so you aren't travelling most days.
I get really distracted at home though and feel isolate, but plenty of people find uni friends distracting and actually have friends at home so don't feel isolated.
It just depends on you and your course really!