Code Monkey home page Code Monkey logo

Comments (8)

ekzyis avatar ekzyis commented on June 25, 2024

I would be happy to work on this. I think I already have a general idea how this could work. Just need to see how 'edit' is implemented.

from stacker.news.

ekzyis avatar ekzyis commented on June 25, 2024

Noticed another use case: I accidentally replied to my own comment instead of using the still available edit button here: https://stacker.news/items/70923

from stacker.news.

huumn avatar huumn commented on June 25, 2024

Delete is a bit tricky. For instance, should you be able to delete a post/comment that someone has tipped you on? Perhaps if you refund them? How about if someone has commented on it?

from stacker.news.

ekzyis avatar ekzyis commented on June 25, 2024

Ah, I see.

But doesn't the same apply to "edits"? You could edit a comment and just completely change your opinion. Then it also wouldn't make sense to keep the tips or if someone replied to you, would it?

But yeah, good point. I didn't think about this before.

Refunding seems to make sense. This should be a edge case anyway that someone already tips you while you can still edit/delete a comment. Or at least not the majority of times.

However, if someone replied to you, I think deleting a post is a bit more "critical". I could see the possibility of people deleting their comments (while they are still able to) if someone else "successfully" called them out on something / invalidated their opinion and they want to save face by deleting the comment.

This seems - at least to me - a bit more "unethical" than simply editing a comment after someone replied to you.

Maybe it should always be possible for a reply to point to the actual comment it replied to? However, I imagine this would be vastly more difficult to implement and storage would double for every reply (as far as I can see now).

from stacker.news.

huumn avatar huumn commented on June 25, 2024

I definitely think we eventually want deletes. Just need to figure out all the corners.

from stacker.news.

ekzyis avatar ekzyis commented on June 25, 2024

Another idea would be to mark comments as "unconfirmed" until they are no longer able to be deleted. Then users who reply know that the comment may get deleted and they will be refunded if the comment gets deleted (potential tip + 1 sat cost for the reply). This could be visualized by making the comment more transparent or just exposing the timer to all users for example.

This is inspired by unconfirmed transactions in bitcoin.

Deletion should probably also cost some amount of sats.

Further, this idea would mean that the top comment could delete a whole chain of replies. But the whole chain is marked as "unconfirmed" since every reply itself has a timer which will be by definition larger than the timer of the comment they replied to. So this should be obvious that the chain can get deleted.

Another idea is to just update a comment with the content [deleted] as I did here when pressing on delete. This would probably be the simplest solution since it's essentially just a reconfigured edit button.

from stacker.news.

ekzyis avatar ekzyis commented on June 25, 2024

I think this can be closed since there are now deletes

from stacker.news.

huumn avatar huumn commented on June 25, 2024

YEP!

from stacker.news.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.