• grue@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      1 year 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.

    • candyman337@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year 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