this post was submitted on 13 Nov 2025
1007 points (99.1% liked)

Programmer Humor

27322 readers
2267 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
(page 2) 50 comments
sorted by: hot top controversial new old
[–] catnip@lemmy.zip 9 points 21 hours ago (1 children)

Those are rookie numbers. We got functions with 5000+ lines and 20 levels of indentation directly in the user-interaction event handlers :)

[–] marcos@lemmy.world 5 points 21 hours ago* (last edited 21 hours ago) (1 children)

Well, that's how you do it!

And if two widgets need to create the same effect, you just copy the 5000 lines around. That's why copy-and-paste was invented.

(It really shouldn't be necessary... but in case somebody still needs it, here's the \s)

load more comments (1 replies)
[–] adhocfungus@midwest.social 8 points 1 day ago (2 children)

"Documenting the code base will be your first task for the next month to help show us how well you understand the codebase."

[–] mad_lentil@lemmy.ca 6 points 22 hours ago

Translation: please help us understand our codebase. We're paralyzed by fear.

load more comments (1 replies)
[–] vane@lemmy.world 7 points 1 day ago* (last edited 1 day ago) (1 children)

Those are amateur problems, real problems start when you are unable to run it or you don't have source code. Bonus, it's written in the in house language made by developer who left job or died - true story.

load more comments (1 replies)
[–] calcopiritus@lemmy.world 7 points 23 hours ago

This is the dram. Since the entire codebase is shit, you basically have to rewrite it basically in its entirety.

Which means you can do it with an actual good design.

And if you mess up on something, you have a working version you can consult.

[–] WormFood@lemmy.world 7 points 15 hours ago (1 children)

every programmer I've seen who says their code is self documenting writes dogshit code

load more comments (1 replies)
[–] hperrin@lemmy.ca 7 points 1 day ago (1 children)

Well, I’m the only maintainer for my project, so ha! (I only have myself to blame.)

[–] sundray@lemmus.org 3 points 1 day ago (1 children)
[–] hperrin@lemmy.ca 5 points 1 day ago

That just means my boss will have to do all the work. Ha, what an idiot. Wait… aw. 🙁

[–] Olgratin_Magmatoe@slrpnk.net 6 points 1 day ago

The team lead has spend the last two months writing a permissions library that nobody understands how to use or debug. He wrote it with Cthulhu at his side. Soon not even Cthulhu will understand it.

[–] PlzGivHugs@sh.itjust.works 5 points 1 day ago

Yeah, that was a fun job... at least the database tended to have some descriptive column names. They never lined up with the entity they mapped to, but it was better than nothing.

[–] zqwzzle@lemmy.ca 5 points 1 day ago* (last edited 1 day ago)

JavaScript developer in a strongly typed language decoding json into dictionaries with single letter keys.

[–] mcv@lemmy.zip 4 points 22 hours ago

I can live without documentation and comments, but then you've got to write really well-structured, self-documenting code. Which means long variable names (or better: local constants) that describe exactly what's in them, and function names that describe clearly what the function is for, and readable code that shows what it does.

But perhaps expecting that kind of discipline from people who lack the discipline to write documentation, was not entirely realistic.

[–] afox@lemmy.world 4 points 21 hours ago

Allow me to introduce a shit ton of jQuery into all the jsp files you got.

[–] freijon@lemmings.world 3 points 22 hours ago

A few years ago I had to port a tool from HTBasic (a proprietary BASIC dialect) to Python. The original source only runs in their proprietary IDE. Of course, no comments whatsoever and a lot of GOTO magic and matrice calculations some of which have no other purpose as to confuse the reader. The variables had only cryptic and meaningless three digit letters. My theory is that they intentionally wrote it in a way that it would be a nightmare to reverse engineer. And they succeeded.

load more comments
view more: ‹ prev next ›