📜 ⬆️ ⬇️

About sending comments

I posted a comment here a few minutes ago, and a message is issued to me, saying “Habrahabr internal error”, and all the comments were gone, it would seem Ajax. I made a refresh, posted a comment on a new one ... And I saw my previous comment before the result, i.e. double

As I understand it, comments on the topic are based on the Nested Sets type (IMHO is the most convenient tree building model). So why instead of redrawing the whole tree, just add new comments.

Implementation, of course, is somewhat more complicated, but I think it should work faster than the current model, especially on popular topics with more than a hundred comments.
')
UPD: Here's another bug - the first three tags do not want to be separated; (
I'm not the only one writing about it

Source: https://habr.com/ru/post/17917/


All Articles