1449
It's not great (media.kbin.social)
submitted 1 year ago by [email protected] to c/[email protected]

I'm doing you a favor

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 31 points 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.

[-] [email protected] 13 points 1 year ago* (last edited 1 year ago)
[-] [email protected] 11 points 1 year ago

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

[-] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Laughs in

struct LooooongCounter {
    long highPart;
    long lowPart;
};
[-] [email protected] 3 points 1 year ago
LooooongCounter operator++(const LooooongCounter& c) {
    if(c.lowPart == ULONG_MAX) {
        c.highPart++;
        c.lowPart = 0;
    }
    else c.lowPart++;
}
load more comments (3 replies)
this post was submitted on 02 Aug 2023
1449 points (97.9% liked)

Programmer Humor

32050 readers
1732 users here now

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

Rules:

founded 5 years ago
MODERATORS