Edit: some people have replied saying why religion is helpful. Ok. But that doesn't answer my question of why is it showing up so much on HN lately.
That is contingent on actually believing in the religion, no? In my experiences, church attendees do not tend to take kindly to people attending with anterior motives.
When I was in school, I attended a few churches to meet new people. They were rather apprehensive when they learned I did not believe in any of it and was just faking it all.
Anyone can find a community nearby, churches aren't the only way.
Glad it worked out for you, but it doesn't for many people and that's okay. There are other communities out there.
Also Church is no substitute for mental health professions. Would you tell someone to "pray the cancer away?" I hope not, you'd tell then to speak to a qualified professional. That's where therapists, psychologists, psychiatrists, social workers, or even guidance councilers come into play.
To all you downvoters Jesus is watching you and will send you to hell for it. -John 3:16