Here’s a great talk from one of the founders of Discourse about the thinking and social engineering ideas that went into the design of Discourse (what this site is using):
Lots of great ideas about how to build effective communication in communities