7

It seems that the current election page - https://stackoverflow.com/election/7 - has a bug where the minus sign will not be shown in front of the down-vote count if certain conditions are met. I can't determine exactly what causes it due to the limited number of candidates and vote distribution, but my hypotheses as to when this happens are as follows:

  • if the down-vote and up-vote counts are comprised of the same number of digits

OR

  • if the down-vote count is a three digit number.

At the moment of writing, the down-vote counts are only either two or three digit numbers, so it's hard to say what happens when they exceed 999.

Here are some examples

enter image description here enter image description here

as opposed to:

enter image description here enter image description here

Tested on Firefox 42.0.

As pointed out by Zizouz212 in the comments below, this applies to regular Stack Overflow posts as well (and presumably other SE sites); one such example can be found here: What is the most efficient way to deep clone an object in JavaScript?

More posts that exhibit this behavior can be seen here: https://data.stackexchange.com/stackoverflow/query/393323?minup=100&mindown=100 , as contributed by Deduplicator in the comments.

17
  • Repo'd, Chrome 46.0.2490.86. If we can get Ed, Undo, josilber, or Madara to 100 downvotes, we can find out if it's due to three digits, or due to the same number of digits. All the cases I saw, both numbers had three digits. (And I checked every candidate.)
    – Kendra
    Nov 16, 2015 at 22:31
  • 1
    Pretty sure this is by-design...
    – Zizouz212
    Nov 16, 2015 at 22:45
  • 1
    @Zizouz212 What would be the motivation behind selectively not showing the minus sign? It should be either always shown or always hidden.
    – user4520
    Nov 16, 2015 at 22:49
  • @Kendra I don't think it's fair to award downvotes in moderator elections just to test bugs ;)
    – user4520
    Nov 16, 2015 at 22:49
  • Not sure, but I understand that this isn't just for the election, and that this applies to all posts.
    – Zizouz212
    Nov 16, 2015 at 22:49
  • @szczurcio It wouldn't be- If they weren't reversible. ;)
    – Kendra
    Nov 16, 2015 at 22:50
  • Here's one such example: stackoverflow.com/a/122704/4293417
    – Zizouz212
    Nov 16, 2015 at 22:51
  • @Kendra I said it half jokingly; they are indeed reversible, but we'd have to get a few people to downvote then reverse the vote (or not, since they might wish to really downvote a candidate), so this gets more complex.
    – user4520
    Nov 16, 2015 at 22:51
  • @Zizouz212 Good catch, I had a hard time finding an actual SO post with a three digit downvote count. Adding this to the question.
    – user4520
    Nov 16, 2015 at 22:52
  • I'm pretty sure that this may have something to do with spacing, regardless, they are already distinguishable with their location and colour in which they appear...
    – Zizouz212
    Nov 16, 2015 at 22:53
  • @Zizouz212 Indeed they are, it's not a significant issue, but there may very well be a more serious flaw related to/caused by whatever's causing this behavior, so I figured it would be good to investigate.
    – user4520
    Nov 16, 2015 at 22:54
  • I'm not sure I would call it a bug, but rather just a simple annoyance to user experience. I wouldn't be toooo concerned about this.
    – Zizouz212
    Nov 16, 2015 at 22:55
  • 1
    I think it's intentional. They don't want to introduce too much misalignment with the positive and negative value, and the fact that it's separated in this fashion should be indicative enough that one vote is positive and the other is negative. Notice that it works fine for numbers < 100.
    – Makoto
    Nov 16, 2015 at 23:02
  • 2
    Here a query to find qualified posts: data.stackexchange.com/stackoverflow/query/… The deleted one is the answer to What real life bad habits has programming given you?: "I now consider 256 to be a nice, round number. Occasionally I'm caught off-guard when non-programmers don't get that." Nov 16, 2015 at 23:15
  • @szczurcio What would be the motivation behind selectively not showing the minus sign? Not showing it when there's not enough room (or at least when space is tight), and showing it when there's plenty of room, seems like an entirely reasonable motivation to me.
    – Servy
    Nov 16, 2015 at 23:50

0

Browse other questions tagged .