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

Programmer Humor

32361 readers
425 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 1 year ago (2 children)

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

[–] floofloof@lemmy.ca 27 points 1 year 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 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@lemmy.world 5 points 1 year ago

Imagine Copilot using it to intentionally showcase terrible code.

[–] korstmos@kbin.social 36 points 1 year 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 1 year 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 1 year ago (1 children)

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

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

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

[–] blackbrook@mander.xyz 4 points 1 year 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 1 year ago

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

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

[–] fer0n@lemm.ee 10 points 1 year ago

I think you convinced me to actually do it

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

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) (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++;
}
[–] HiddenLayer5@lemmy.ml 27 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."

[–] umbrella@lemmy.ml 5 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.

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

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

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

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

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

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

[–] pythonoob@programming.dev 10 points 1 year ago

Shit that's brutal

[–] darcy@sh.itjust.works 4 points 1 year ago

me when i accidently star my own repo

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

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

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

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

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

[–] MeetInPotatoes@lemmy.ml 3 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.

[–] cipherlab@lemmy.ml 15 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.

[–] scottmeme@sh.itjust.works 9 points 1 year 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 1 year ago (1 children)

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

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

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

[–] narc0tic_bird@lemm.ee 6 points 1 year ago

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

[–] forgotmylastusername@lemmy.ml 6 points 1 year ago

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

[–] Worthstream@lemmy.one 6 points 1 year ago

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

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

GitHub has private repositories for both of you.

[–] MaxPower@feddit.de 11 points 1 year ago

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

[–] azvasKvklenko@sh.itjust.works 4 points 1 year ago

Most companies are both

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

Any good alternatives for GitHub you can recommend?

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

Codeberg, Forgejo, Gittea, Gitlab,

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

gitlab, self-hosted gitea instance, codeberg

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

[–] roi@lemmy.blahaj.zone 3 points 1 year ago

I post to GitHub because I am GitHub

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

load more comments
view more: next ›