We want our logged in users to be able to comment on submissions. We'd also like users to reply to comments by other users. To achieve this, our
comment model needs to be able to track the submission it was made on and also have a link to its parent comment (if it was made in reply to some other user's comment).
If you have ever used forums on the Internet, the way our comments section works should seem familiar. One complaint that I've always had with all these forums is that they allow this hierarchy of comments to go on forever. Then you end up with 10-level deep comments that extend off the screen:
Comment 1 Comment 2 Comment 3 Comment 4 Comment 5 Comment 6 Comment 7 Comment 8 Comment 9 Comment 10
While there are a number of ways to ...