I can get a ton of stuff done at a Starbucks. I'm usually more productive there than at home, actually.
The key is that even though there's lots of noise and people talking, you're virtually guaranteed that nobody will be talking to you. That means you're completely free of distractions, and, as an added bonus, enveloped in a cloud of vaguely enthusiastic white noise.
There's this energy around you that somehow inspires you to actually do some interesting work rather than slack off and read the internet. You want people walking past to see an IDE and some cryptic-looking code on the screen, rather than pictures of cats with funny captions. The whole experience is a bit of a feedback loop.
When I lived in the States, I would routinely head off to a Starbucks to work away the morning, leaving my comfy home office & wifi behind to do so.