this post was submitted on 30 Sep 2023
829 points (96.7% liked)

Programmer Humor

32410 readers
276 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 34 comments
sorted by: hot top controversial new old
[–] Anticorp@lemmy.ml 68 points 1 year ago

Half the time it's because it's FOSS with a proprietary skin over it.

[–] QuazarOmega@lemy.lol 62 points 1 year ago (4 children)

On the other side there's people that genuinely use that as an excuse and say "they'll open source after they cleaned up the code". Why they couldn't clean it up in the clear is beyond me, no one will shame you for your code, just sharing it under a free license is admirable in and of itself

[–] LaggyKar@programming.dev 43 points 1 year ago (2 children)
[–] QuazarOmega@lemy.lol 11 points 1 year ago (1 children)
[–] fristislurper@feddit.nl 36 points 1 year ago* (last edited 1 year ago) (2 children)

They will shame you, for your messy code. People suck sometimes.

[–] QuazarOmega@lemy.lol 8 points 1 year ago

That's awful, I guess I should consider myself lucky that nobody looks at my repositories then. But still, if someone does they're the assholes, you shouldn't feel bad about it, you should actually tell them to fix it themselves if they're so good

[–] xmunk@sh.itjust.works 2 points 1 year ago

Those people are assholes and aren't worth your consideration.

[–] VikingHippie@lemmy.wtf 5 points 1 year ago

Those are the kind of people who will always find something to ridicule or complain about, though, so you should never let their hypothetical bitching affect your decisions.

[–] redcalcium@lemmy.institute 37 points 1 year ago (1 children)

I open sourced my code so other people can clean it up *tap head*

[–] QuazarOmega@lemy.lol 9 points 1 year ago

Gigabrain, going for the afk grindset

[–] ______@lemm.ee 9 points 1 year ago

I was watching a YouTuber going over a major revision update for a framework or something and he said "I skipped over the part where I was coding this" nah dude, I wanna see that as well. What did you try and how did it go.

So much weird ego in coding.

[–] JackRiddle@sh.itjust.works 2 points 1 year ago

You can't do much worse than vim, so..

[–] ______@lemm.ee 40 points 1 year ago (4 children)

Asshole take: if you share your project online but not the source code I immediately think your code sucks.

Let's be real your clone project is not something a venture capitalist is going to invest in, there's literally no reason to hide it but shame. Shame of sinful and bad code.

[–] captainteebs@lemmy.ml 14 points 1 year ago

This applies to any project, really. At my workplace, if someone refuses to let other teams look under the hood of a product, 95% of the time, it's because their code is absolute garbage, but their leaders didn't want to wait so they pushed it to prod and now it's up to some junior employee to fix all the shit that blows up in prod.

And just for closure, 5% of the time, it's because there actually is no product at all.

[–] Ironfacebuster@lemmy.world 11 points 1 year ago (1 children)

I have a project that I shared online, and the source code isn't shared BECAUSE it sucks lol

[–] xmunk@sh.itjust.works 5 points 1 year ago (1 children)

Well.... share it - then you might get help making it suck less.

[–] Ironfacebuster@lemmy.world 2 points 1 year ago (1 children)

I actually might, it's been sitting dormant for a long time so it couldn't hurt

[–] ______@lemm.ee 1 points 1 year ago

One of the best devs I've ever had the pleasure to meet chatted with me about the worst code we've ever wrote. We even provided links to the specific repos and lines. Nothing to be ashamed of.

[–] xtremeownage@lemmyonline.com 5 points 1 year ago

For certain projects I monetize, there are reasons I don't share the code.

Patents don't magically find people infringing your intellectual property. The owness is on you.

That being said, I have bills to pay, and mouths to feed. Giving my solutions away for free, doesn't help those issues.

[–] Jumuta@sh.itjust.works 4 points 1 year ago (1 children)

Every proprietary software I touch makes me feel like it's gooey and sticky and ewwww

[–] kuneho@lemmy.world 3 points 1 year ago (1 children)

you should seek professional help then

[–] stepanzak@iusearchlinux.fyi 1 points 1 year ago (1 children)
[–] kuneho@lemmy.world 1 points 1 year ago

it's never too late

[–] peter@feddit.uk 27 points 1 year ago (1 children)

I make all my sucky code public because I've never seen a codebase that doesn't suck in some way

[–] MajorHavoc@lemmy.world 11 points 1 year ago

High five!

My code might be garbage, but I've learned that no one will notice in this aisle of trash heaps.

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

I have a private repo on GitHub that is private for this reason. I made it in a weekend for fun, and it's honestly so bad. I have spent way longer fixing dumb mistakes that I spent developing the main features in the first place. But I learned a lot while doing it (and fixing it), and my current project that I'm working on is much, MUCH better. I do have it in a public repo.

[–] xmunk@sh.itjust.works 3 points 1 year ago (2 children)

Nobody that isn't an asshole is going to shame you over dirty code - and if you make it public maybe someone will help you clean it up.

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

Oh I'm sure. But knowing that doesn't make me any less self conscious about it.

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

I like your code. I'm a senior developer who is fastidious about code form and will comment on bad form on any PR put in front of me because readability is the second most important characteristic of code for maintainability. Still, I've written uglier code. Take this comment and print it out if you want to, it's a writ of permission to write ugly code just as long as you eventually plan on cleaning it up.

[–] dansity@lemmy.dbzer0.com 2 points 1 year ago

Sometimes stackoverflow is leaking

[–] xmunk@sh.itjust.works 16 points 1 year ago

Pre-heartbleed OpenSSL: "Hold my beer."

[–] mycodesucks@kbin.social 4 points 1 year ago

Are you me?

[–] Aurenkin@sh.itjust.works 1 points 1 year ago (1 children)

Oh man, I really thought that under the mask was going to be a bunch of open source software.

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

Specifically OpenBSD. If you browse into the Windows System32 folder you'll eventually trip over an etc directory... inside you'll find a file called hosts.

I wonder why...