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

Programmer Humor

33216 readers
2 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
[–] traches@sh.itjust.works 44 points 2 years ago (2 children)

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

[–] floofloof@lemmy.ca 27 points 2 years ago (1 children)

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

[–] ox0r@jlai.lu 17 points 2 years ago* (last edited 2 years ago)

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

[–] kamen@lemmy.world 5 points 2 years ago

Imagine Copilot using it to intentionally showcase terrible code.

[–] korstmos@kbin.social 36 points 2 years ago (5 children)

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

We are not the same

[–] original_ish_name@lemm.ee 15 points 2 years ago

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

We are not the same

load more comments (4 replies)
[–] GodIsNull@feddit.de 32 points 2 years ago (1 children)

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

[–] akariii@lemmy.blahaj.zone 3 points 2 years ago* (last edited 2 years ago) (1 children)

codeberg, self-hosted gitlab, gitea/forgejo, ~~sourceforge~~

[–] blackbrook@mander.xyz 4 points 2 years ago (2 children)

Didn't sourceforge go to shit some years back with ads, embedding bloatware into downloads, and I don't remember what else? Did it get better again?

load more comments (2 replies)
[–] zzzeyez@lemmy.dbzer0.com 28 points 2 years ago

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

[–] Gecko@lemmy.world 27 points 2 years 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.

[–] lol@sh.itjust.works 10 points 2 years ago* (last edited 2 years ago) (1 children)
[–] rmuk@feddit.uk 8 points 2 years ago (1 children)

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

[–] socsa@lemmy.ml 3 points 2 years ago* (last edited 2 years ago) (1 children)

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++;
}
[–] fer0n@lemm.ee 10 points 2 years ago

I think you convinced me to actually do it

[–] HiddenLayer5@lemmy.ml 27 points 2 years ago* (last edited 2 years 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."

[–] umbrella@lemmy.ml 5 points 2 years ago* (last edited 2 years ago) (1 children)

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

[–] MyNameIsRichard@lemmy.ml 11 points 2 years ago (1 children)

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

[–] dandroid@dandroid.app 6 points 2 years ago (2 children)

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

load more comments (2 replies)
[–] uyuu@lemmy.4d2.org 27 points 2 years ago (2 children)

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

[–] pythonoob@programming.dev 10 points 2 years ago

Shit that's brutal

[–] darcy@sh.itjust.works 4 points 2 years ago

me when i accidently star my own repo

[–] maxbossing@feddit.de 18 points 2 years 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.

[–] Dirk@lemmy.ml 13 points 2 years 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.

[–] Afghaniscran@feddit.uk 27 points 2 years 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

[–] MeetInPotatoes@lemmy.ml 15 points 2 years 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.

[–] PretentiousDouche@lemmy.sdf.org 3 points 2 years 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.

load more comments (1 replies)
[–] cipherlab@lemmy.ml 15 points 2 years 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.

[–] scottmeme@sh.itjust.works 9 points 2 years ago (1 children)

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

[–] TechieDamien@lemmy.ml 7 points 2 years ago (1 children)

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

[–] rmuk@feddit.uk 16 points 2 years ago* (last edited 2 years 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.

[–] dmrzl@programming.dev 3 points 2 years ago (1 children)

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

load more comments (1 replies)
[–] SexualPolytope@lemmy.sdf.org 7 points 2 years 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.

[–] narc0tic_bird@lemm.ee 6 points 2 years ago

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

[–] Worthstream@lemmy.one 6 points 2 years ago

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

[–] forgotmylastusername@lemmy.ml 6 points 2 years ago

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

[–] Anticorp@lemmy.ml 5 points 2 years ago (1 children)

GitHub has private repositories for both of you.

[–] MaxPower@feddit.de 11 points 2 years ago

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

[–] azvasKvklenko@sh.itjust.works 4 points 2 years ago

Most companies are both

[–] roi@lemmy.blahaj.zone 3 points 2 years ago

I post to GitHub because I am GitHub

[–] LastoftheDinosaurs@lemmy.world 3 points 2 years ago

Ask chatgpt to refactor parts of it. But be careful, that damn thing lies.

[–] M1st3rM@discuss.tchncs.de 3 points 2 years ago (2 children)

Any good alternatives for GitHub you can recommend?

[–] maxbossing@feddit.de 10 points 2 years ago (2 children)

Codeberg, Forgejo, Gittea, Gitlab,

load more comments (2 replies)
[–] vox@sopuli.xyz 7 points 2 years ago* (last edited 2 years ago)

gitlab, self-hosted gitea instance, codeberg

[–] lowleveldata@programming.dev 3 points 2 years 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.

load more comments
view more: next ›