News for hackers. Stuff that matters.
Re:Tell HN: New features and a moderator by lotharbot on Monday July 11, 2016 @03:44PM (#12073786)
How long does the "unvote" option last? Permanently? If I accidentally bump the "unvote" button on a comment that's years old, can I re-apply my vote, or only if it's an upvote?
Re:Tell HN: New features and a moderator by dang on Monday July 11, 2016 @03:46PM (#12073806)
That is a subtle point and I was curious if someone would ask about it!

Unvote links last for an hour. This is because the main use of voting data is to rank posts, and that's time sensitive. If we let people go back and unvote after hours have gone by (let alone years), that would be rewriting history, or counterfactually messing with it.

Even an hour is arguably too long. Since the main purpose of this feature is to correct misclicks and over-hasty impulses, a few minutes would probably be enough.

Re:Tell HN: New features and a moderator by wikwocket on Monday July 11, 2016 @04:28PM (#12074226)
An hour seems a good compromise, since one reason you may want to change your vote would be if the post was edited after you voted.

An hour provides enough time for the edit to happen, and for you to see it and change your vote.

If this is not a target use case and you only want people to be able to undo misclicks, then 5-10 minutes may be adequate.

Re:Tell HN: New features and a moderator by netcraft on Monday July 11, 2016 @04:08PM (#12074027)
I think a few minutes would be fine - but it would be nice to still know how I voted after the fact.
Re:Tell HN: New features and a moderator by dang on Monday July 11, 2016 @04:22PM (#12074160)
Hmm. Good point.
Re:Tell HN: New features and a moderator by danso on Monday July 11, 2016 @04:48PM (#12074444)
How about in lieu of a stylesheet/visual change (since those seem to be few in number over the years), have upvote/downvote status result in a HTML element class attribute that browser-plugins can leverage for custom styling?
Re:Tell HN: New features and a moderator by DKnoll3 on Monday July 11, 2016 @05:54PM (#12075028)
I was always under the impression that the reason you couldn't undo was purely to encourage putting thought into your votes, instead of clicking after the first sentence, getting through the rest of the post, and looking to take your upvote back.

Guess I was wrong. I'd say 30 seconds should be enough, with this thought in mind =]

Re:Tell HN: New features and a moderator by jakobegger on Monday July 11, 2016 @06:06PM (#12075151)
The main use case for the unvote button is for mobile, and on a spotty mobile connection it might take a lot longer than 30 seconds until the action registered.
Re:Tell HN: New features and a moderator by lotharbot on Monday July 11, 2016 @06:21PM (#12075251)
Sometimes I'll vote on a comment, and then as I'm reading the replies and clarifications, or other comments elsewhere in the discussion, I'll realize I misunderstood something and will want to go back and change my vote.
Re:Tell HN: New features and a moderator by r00fus on Monday July 11, 2016 @05:48PM (#12074990)
I'd agree an hour is too long; I would only really unvote if it was accidental (ie, immediately) or upon perusing the other comments or data that made me rethink my moderation (which would reasonably be ~5m or so).