94

Stack Overflow prevents comments from being edited after the 5 minute mark. However, the edit button is not removed until the page is refreshed. In other words, if I post a comment and wait 6 minutes, I still have the option to edit that comment. And if I do edit that comment, it is only after I submit my changes that SO presents the error, "Comments may only be edited for 5 minutes."

enter image description here

enter image description here

Why allow users to edit after this 5 minutes is up? Having an edit button that is clickable implies that when I submit my edit, everything will go through. Having an edit button present after 5 minutes and that only throws an error after I submit my edit seems like very poor feedback.

The age of the comment is updated constantly without requiring a refresh. So why can't the edit button be updated as well? Hide it? Even showing me the message as soon as I click edit would be better.

22
  • Just wanted to bring it to attention. Commented Jul 25, 2014 at 11:11
  • 1
    This could be a feature-request, you're right that if does look like a strange way to handle edits. Commented Jul 25, 2014 at 13:24
  • 3
  • 77
    Not nearly as frustrating as spending 5-10 minutes on an answer, only to find it's been closed while you were typing.
    – Hot Licks
    Commented Jul 25, 2014 at 21:45
  • Because the comment timestamps are static, and the error is thrown after querying the server.
    – Charlie
    Commented Jul 26, 2014 at 3:20
  • 3
    I was going to report this bug a long time ago but I figured it would be status-declined because they would say who cares. Best of luck I guess.
    – user541686
    Commented Jul 26, 2014 at 6:07
  • 1
    @Charlie the visibility of the edit link could be updated at the same time as the displayed duration. The timestamp is static, but the way it's displayed is not. Commented Jul 26, 2014 at 10:37
  • 11
    @HotLicks Don't answer crappy questions then.
    – lily
    Commented Jul 26, 2014 at 17:32
  • 2
    It makes a lot of sense from a user interface point of view. If the edit button disappeared after 5 minutes, everybody not knowing about the 5 minutes timeout would be searching for it.
    – Étienne
    Commented Jul 27, 2014 at 12:03
  • 2
    show edit button in "disabled" state (overstrike or grayed out) after 5 minutes with a hover tooltip over it saying "disabled 5 minutes after initial post"
    – peterk
    Commented Jul 27, 2014 at 12:37
  • 1
    @HotLicks If you are answering questions that will be closed, you are doing something very wrong.
    – bjb568
    Commented Jul 28, 2014 at 2:16
  • 1
    @HotLicks You have 3k rep, so you can see pending closevotes. But in any case, you shouldn't even think about answering questions that can be closed. If you see a question that might be a duplicate, is too broad, unclear, primarily opinion based, off-topic, or low quality - don't answer it.
    – bjb568
    Commented Jul 28, 2014 at 2:22
  • 3
    @HotLicks If you use a browser that supports websockets, then yes, you do get a warning within 30 seconds of a question being closed.
    – hichris123
    Commented Jul 28, 2014 at 2:37
  • 1
    @HotLicks If you get in that situation, and you feel that the question and answer are useful, there is something that you can do. If the question was closed as a duplicate, post an answer to the duplicated question. If it was closed for another reason, write your own question and answer it. If you can't make a useful question to answer, then you should leave it alone. Commented Jul 28, 2014 at 3:14
  • 2
    @bjb568: The close vote counter isn't updated on-the-fly, at least I don't see that happening, so if someone is busy writing an answer they're probably not refreshing the page to see if the close vote count is going up, especially if there weren't any pending votes yet at the time they started writing.
    – BoltClock Mod
    Commented Jul 28, 2014 at 3:20

1 Answer 1

4

Because at least you can edit it for that long. Some will re-read their post and realize they meant to add in that punctuation, or just re-word a couple of things for clarity, and be on their way.

And, on the flip side, having a set time means, after which, no one needs to worry about saying something about that last comment, and then the last commenter going back and changing their comment completely, so as to make your comment look dumb and they get the upvote, and you don't, because theirs was first.

The button being there means the page hasn't been refreshed. Sorry that SO isn't up on AJAX to take that button away from you at the 5:01 minute mark, but that's an issue for the SO programmers... Their reasons could have included any from those comments to your question (including ensuring people know they only have 5 minutes, in the future, to edit their comments).

4
  • 5
    I agree with your first two paragraphs about why there is a limit. I think what everyone is asking is why the ability to edit is misleadingly offered beyond the 5min mark and users waste their time composing an edit they then cannot post. It's a big usability defect and for a site network as big as SE/SO just not acceptable really. You sort of address this in your third paragraph, but seeing as this question was asked nearly a year ago and still nothing has been done about it, it seems the real answer is: because Stack Overflow just doesn't care.
    – Mentalist
    Commented Jul 4, 2015 at 2:34
  • 1
    @Mentalist - probably right.
    – vapcguy
    Commented Jul 9, 2015 at 18:42
  • 2
    @Mentalist Well, maybe not that they don't care, but that they care about other things more. It's not a perfect world where there are infinite developer hours that can be used to fix every single possible bug... other bugs (or features) may be taking precedence. Comments being relatively short, and the fact that it doesn't erase what you typed (so you can add it to another comment, if you want) mean the loss is minimal. I'd love to see this fixed, but just providing thoughts for why it's not their #1 priority...
    – dwanderson
    Commented Oct 31, 2017 at 17:07
  • I still find this behavior weird Commented Oct 24, 2022 at 15:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .