I’m doing you a favor

  • Gecko@lemmy.world
    link
    fedilink
    English
    arrow-up
    32
    ·
    1 year ago

    ngl, I’m annoyed whenever someone creates an application but doesn’t want to publish their code cause it looks bad. Like no one cares that your code is bad and by publishing it, you can get others to help you improve it.

      • rmuk@feddit.uk
        link
        fedilink
        English
        arrow-up
        11
        ·
        1 year ago

        Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour

        • socsa@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          1 year ago

          Laughs in

          struct LooooongCounter {
              long highPart;
              long lowPart;
          };
          
          • TheyCallMeHacked
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago
            LooooongCounter operator++(const LooooongCounter& c) {
                if(c.lowPart == ULONG_MAX) {
                    c.highPart++;
                    c.lowPart = 0;
                }
                else c.lowPart++;
            }