尤川豪   ·  5年前
445 貼文  ·  275 留言

巢狀留言功能如何設計?

How to design a commenting system that support nested comment?

What is the best solution? for both UI/UX & schema?

dev.to

https://dev.to/sergio/what-is-your-best-advice-for-a-junior-software-developer-32gn

reddit

https://www.reddit.com/r/programming/comments/4jvnl4/programming_doesnt_require_talent_or_even_passion/

quora

https://www.quora.com/Are-there-any-poor-people-on-Quora-as-Internet-access-is-very-cheap-nowadays/answer/Rajana-Siva

disqus

http://blog.turn.tw/?p=1283

questions

  1. database schema for this?
  2. infinitely nested comment? or limited level?
  3. Medium 似乎只能巢狀留言到 1 層?
  分享   共 1,946 次點閱
按了喜歡:
共有 3 則留言
chenjenping   ·  5年前
4 貼文  ·  14 留言

沒做過 nested comment

之前做過比較接近的是多層分類

母分類下面有子分類

每筆分類加上 parent_id 就可以一層層往下 query

但是因為只用到兩層,而且又是後台使用

所以沒有處理更多層的問題

感覺上是要限制層數沒錯

實作上可以另外做按鈕去 ajax load 下層的 comment,不用一次列出來

 
按了喜歡:
Connor Hsu   ·  5年前
0 貼文  ·  7 留言

medium 可以無限回覆,因為任何一個留言都是一篇文章,但是好像只顯示一層?

reddit 剛剛看至少有10層,搞不好可以更多?

 
按了喜歡:
尤川豪   ·  5年前
445 貼文  ·  275 留言

補充:

Disqus

巢狀顯示到 4 層

Discourse

無巢狀顯示

 
您的留言
尤川豪
445 貼文  ·  275 留言

Devs.tw 是讓工程師寫筆記、網誌的平台。隨手紀錄、寫作,方便日後搜尋!

歡迎您一起加入寫作與分享的行列!

查看所有文章