I live in a fairly isolated village, at least by British standards. There aren’t really coffee shops or places to hang out and work on a laptop as there might be in a city. You could sit in the pub, I suppose, but then you can’t listen to music or Youtube videos while you work and nursing booze rather than an exorbitantly priced novelty coffee is expensive and debilitating to the ability to work.
So I work in private, at home, in various rooms, surrounded by research material and references. Twitter is my ‘water cooler’, Youtube my office gossip.
That said, I often am puzzling over ideas and systems while I’m doing something else, and inspiration can strike at any time.