this post was submitted on 02 Dec 2025
1036 points (98.3% liked)

Programmer Humor

32862 readers
941 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 

Am baby

My code is disgusting ๐Ÿซ 

But I'm getting better every day!

(page 2) 34 comments
sorted by: hot top controversial new old
[โ€“] vga@sopuli.xyz 3 points 8 months ago* (last edited 8 months ago)

I'm currently sitting on a codebase that's perfectly ok and I have no reason not to open-source it, but it's 95% generated by AI so I don't know. Probably I'll just use it myself like it was an embarrasing sex toy.

Looking at github lately, it seems a lot of people don't share my reservations.

[โ€“] finitebanjo@lemmy.world 3 points 8 months ago (1 children)

POV: People looking through the comments on my code:

    // This fucking piece of shit right here, I tried like 8 versions of the Library and only this one works which was incompatible with some other shit that's not here anymore

    // and I have no fucking clue why it needs to be divided by 3 but it does even though its supposed to be a memory stream, I have a flag set here if it crashes because I'm just about certain there will eventually be some undefined behavior

   //EDIT 07-15 :  I have commented it out because I noticed everything actually runs fine without it, for now.

    // EDIT 07-18 : Oh actually it appears that the other solution which didn't use to work is now working which is why everything appears to work as long as both solutions to this problem don't simultaneously fail.

    //  EDIT 09-02 : I need to start making comments like "this variable comes from" or "I named it this because" so I know what the fuck I'm looking at.
[โ€“] jve@lemmy.world 3 points 8 months ago
git history
[โ€“] GreenKnight23@lemmy.world 2 points 8 months ago

I have written so many scrapers in my life that would have probably helped thousands of people.

it was all for porn though. they shall never see the light of day.

[โ€“] cassandrafatigue@lemmy.dbzer0.com 1 points 8 months ago (1 children)

I don't understand your username. Like that's some kind of exception?

[โ€“] ArsonButCute@lemmy.dbzer0.com 1 points 8 months ago (1 children)

I'm not sure I understand the question

[โ€“] cassandrafatigue@lemmy.dbzer0.com 1 points 8 months ago (1 children)

Cake but tasty, kittens but adorable, arson but cute?

[โ€“] ArsonButCute@lemmy.dbzer0.com 1 points 8 months ago (1 children)

Oh, well I mean, arson isn't normally cute is it?

What did i say!?

[โ€“] ulterno@programming.dev 1 points 8 months ago (1 children)

I happily push even the low quality stuff I make.
Some of the repos aren't even meant to be used as is, but is just full of other spaghetti with some parts properly done, which I then tell the intended recipient to pick out of. But still, the whole thing is available for the world to see.

Even the good ones have a pretty casual git log. I only really try to make stuff pretty, when giving code to other's projects and even then, I will be pretty casual in the commit messages for the MR, which I then intend on squashing later.

[โ€“] MystikIncarnate@lemmy.ca 1 points 8 months ago

I kind of like this. When I'm searching for how to do something, I probably don't want your entire codebase, just don't snippet that does the thing.

I'll probably need to modify it so the thing works in a specific way, so I can make what I need to make.

Usually I just need a point in the right direction and I can assemble the rest.

[โ€“] MystikIncarnate@lemmy.ca 0 points 8 months ago

I was reviewing some PowerShell script today and it was absolutely atrocious. It's only saving grace was that it was using actual PowerShell, not some hacky wmic call or anything.

I didn't write it and I'm really glad for that. Whole lines of rewritten code commented out and just left there. Entire lines of # marks. There's no reason this should be so densely commented. Your code should be self explanatory.

There were multiple queries to the same database that was then passed through a "where-object" selector by pipe, looking for a single value (pulling a database of thousands of entries for one line).

It was disgusting.

I'm not even a developer and I thought it was horrid.

load more comments
view more: โ€น prev next โ€บ