1452
It's not great (media.kbin.social)

I'm doing you a favor

you are viewing a single comment's thread
view the rest of the comments
[-] lol@sh.itjust.works 13 points 1 year ago* (last edited 1 year ago)
[-] rmuk@feddit.uk 11 points 1 year ago

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

[-] socsa@lemmy.ml 3 points 1 year ago* (last edited 1 year ago)

Laughs in

struct LooooongCounter {
    long highPart;
    long lowPart;
};
LooooongCounter operator++(const LooooongCounter& c) {
    if(c.lowPart == ULONG_MAX) {
        c.highPart++;
        c.lowPart = 0;
    }
    else c.lowPart++;
}
this post was submitted on 02 Aug 2023
1452 points (98.0% liked)

Programmer Humor

32410 readers
289 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS