That's why you never date your co-worker. And if you couldn't help it and fell in love then you should quit your job first and ask him/her on date later.
Other people at the cafe, I don't care what they're talking about. And it's away from home where I might have other distractions.
If you could train coworkers to respect the explicit and implicit signals that people give off when working and concentrating on something and use some fucking etiquette like keeping the shouting to a minimum or taking long conversations elsewhere, this wouldn't be a problem.
I expect the cafe is more akin to white noise, not the sort of conversations you'd hear in a dev open office. Sometimes when you overhear some devs talking you can't help get sucked into the conversation. Especially when they are wrong.
I much prefer the library setting where you're expected to be quiet and there is little movement around you.