this post was submitted on 02 Aug 2023
1100 points (97.7% liked)

Programmer Humor

31896 readers
1465 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

I'm doing you a favor

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 54 points 1 year ago (2 children)

I post my terrible code to github so I can sabotage copilot

[–] [email protected] 32 points 1 year ago (1 children)

Get copilot to generate bad code in quantity, then upload that to GitHub so it slowly cannibalizes itself.

[–] [email protected] 17 points 1 year ago* (last edited 1 year ago)

I only post upload badly written reverse shells so that copilot just turns all code in a backdoor, take that NSA!

[–] kamen 6 points 1 year ago

Imagine Copilot using it to intentionally showcase terrible code.

[–] [email protected] 36 points 1 year ago (4 children)

I don´t post code to github because it's a microsoft company.

load more comments (4 replies)
[–] Gecko 30 points 1 year ago (2 children)

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] 12 points 1 year ago* (last edited 1 year ago) (1 children)
[–] [email protected] 11 points 1 year ago (1 children)

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

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

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++;
}
[–] [email protected] 9 points 1 year ago

I think you convinced me to actually do it

[–] [email protected] 30 points 1 year ago (2 children)

I got one star on my repo so i immediately privated it

[–] [email protected] 14 points 1 year ago

Shit that's brutal

[–] [email protected] 6 points 1 year ago

me when i accidently star my own repo

[–] [email protected] 28 points 1 year ago* (last edited 1 year ago) (1 children)

"I don't post my code to GitHub because it's a proprietary platform owned by Microsoft and the antithesis to open source. We are not the same."

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

They are probably scraping it to train AI anyway. Not doing that for free.

[–] [email protected] 11 points 1 year ago (1 children)

Maybe we should all host our shitty code on github and make the ai psychotic!

[–] [email protected] 6 points 1 year ago (2 children)

Oh don't worry. My shitty code is on GitHub.

load more comments (2 replies)
[–] [email protected] 21 points 1 year ago (6 children)

I dont post my code to github because I would rather use gitlab

We are not the same

[–] [email protected] 13 points 1 year ago

I dont post my code to gitlab because I would rather use codeberg

We are not the same

load more comments (5 replies)
[–] [email protected] 18 points 1 year ago

i post my code to github so ppl will fix it for me because im just a artist

[–] [email protected] 18 points 1 year ago

I don't post code to GitHub because I get paid to code, and I'm too lazy to do more.

And my code probably sucks.

[–] [email protected] 17 points 1 year ago (1 children)

User name checks out. I scrolled all the way down to make sure I can say this and still be original in this particular instance only.

[–] [email protected] 6 points 1 year ago (1 children)

The best part of Lemmy is the low userbase in comparison means it's easier to be original and not try and say the same thing a hundred times.

[–] [email protected] 5 points 1 year ago

Amen! There's plenty of content to doomscroll through as well. I genuinely don't miss Reddit as that part of my brain forgets it's not Reddit. Hell, we should call Lemmy "I can't believe it's not Reddit" and hire Fabio to do a commercial.

[–] [email protected] 10 points 1 year ago (1 children)

I don't post my code to GitHub because I use GitLab. We are not the same

[–] [email protected] 7 points 1 year ago (1 children)

I don't post to GitLab because I use Gitea. We are not the same.

[–] [email protected] 18 points 1 year ago* (last edited 1 year ago) (1 children)

I don't post to Gitea because I scrawl my code onto a piece of leather made of human flesh and venture down to the shore on a stormy night to hurl it into a raging sea as I shriek insults at God in a language known only to madmen. We are not the same.

[–] [email protected] 4 points 1 year ago (1 children)

Oh, you are the guy from the neighboring beach. We should consider synchronizing our sacrifice.

load more comments (1 replies)
[–] [email protected] 8 points 1 year ago

I'm not a professional dev. So I don't care what anyone else thinks, it's not gonna affect my job prospects. So I publish all my shit code for the world to see.

[–] [email protected] 7 points 1 year ago

Many people here seem to have very strong opinions about GitHub :D

[–] [email protected] 7 points 1 year ago

I make throwaway accounts. Push code. Disappear forever. Come to find out nobody ever looks at it anyways.

[–] [email protected] 6 points 1 year ago (1 children)

You don’t passt your code because you’re embarrassed by it.

I don’t post my code to github because i don’t use proprietary garbage.

We are not the same.

[–] [email protected] 4 points 1 year ago (1 children)

You don't post your code to GitHub because you don't use proprietary garbage.

I don't post my code to GitHub because I selfhost my own Forgejo instance.

We are not the same.

[–] [email protected] 13 points 1 year ago

You don't post you code to GitHub because you self host you something or other

I don't post any code to GitHub cos I don't code and I'm not really sure what's going on

Are we the same? Idk

[–] [email protected] 5 points 1 year ago (1 children)

Oh, that's the next excuse i'll use when a recruiter asks for my github page. "i'm protecting my product".

load more comments (1 replies)
[–] [email protected] 5 points 1 year ago
[–] [email protected] 4 points 1 year ago

Post it if it provides functions not found anywhere else. I can't give less fuck to code quality if it does the work for that absurd user requirement for me.

[–] [email protected] 4 points 1 year ago (2 children)

Any good alternatives for GitHub you can recommend?

[–] [email protected] 9 points 1 year ago (2 children)

Codeberg, Forgejo, Gittea, Gitlab,

load more comments (2 replies)
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

gitlab, self-hosted gitea instance, codeberg

[–] [email protected] 3 points 1 year ago

Most companies are both

[–] [email protected] 3 points 1 year ago (1 children)

GitHub has private repositories for both of you.

[–] [email protected] 5 points 1 year ago

I'd bet that AI still gets to appropriate it as its "own" creation.

load more comments
view more: next ›