I can write great code alone, in my man cave, with a glass of wine or a bottle of beer. It works for me. Coding in more public places also works for me. Coding in the backyard is great as well. Doing pair programming with a friend is also awesome.
But, I would never impose these various ways to code as being better or worse than any other.
Because Facebook got so rich so fast, there is definitely a crowd of people out there, who believe in silver bullets and who now claim that a hacker that won't join hackathons can't be good. That's nonsense.