• grue@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      2 years ago

      As the saying goes, there are two fundamentally difficult things about programming:

      1. cache coherence
      2. coming up with good names for things
      3. off-by-one errors

      Negative comment counts are likely caused by the latter.

    • DannyMac@lemmy.worldOP
      link
      fedilink
      arrow-up
      13
      ·
      2 years ago

      Looks like a bug! For me, from lemmy.world’s web interface, it is -1 as of this posting.

    • candyman337@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      If a user deletes a comment it subtracts from the count, seems to go to negative numbers sometimes, maybe when it’s removed it subtracts two on certain circumstances