this post was submitted on 02 Dec 2025
1011 points (98.8% liked)

Programmer Humor

27679 readers
1074 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 2 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
[โ€“] finitebanjo@lemmy.world 3 points 3 days 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.
load more comments (1 replies)
[โ€“] ch00f@lemmy.world 11 points 5 days ago (1 children)

Trust me, there's someone just starting out, and you got them 90% of the way there, and they will humbly submit a fix for your code with zero judgement.

That someone is me, because I have no idea what I'm doing.

because I have no idea what I'm doing

I'm in this photo and I don't like it.

[โ€“] GreenKnight23@lemmy.world 2 points 3 days 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.

[โ€“] eemon@programming.dev 6 points 4 days ago

Relatable content.

[โ€“] roofuskit@lemmy.world 8 points 5 days ago* (last edited 5 days ago)

You want my comment-less source code? I can't be arsed.

Mad respect

[โ€“] blockheadjt@sh.itjust.works 4 points 4 days ago (1 children)

Well that's embarscing

[โ€“] vga@sopuli.xyz 3 points 4 days ago* (last edited 4 days 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.

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

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

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

I'm not sure I understand the question

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

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

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

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

[โ€“] MystikIncarnate@lemmy.ca 0 points 3 days 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 โ€บ