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

Programmer Humor

27330 readers
1317 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
[–] tonytins@pawb.social 29 points 2 days ago (1 children)

I was part of project that scoffed at the idea documenting code. Comments were also few and far between. In retrospective, it really seemed like they wanted to give that elitist feel because everything reeked of wanting to keep things under wraps despite everything being done out in the freakin' open.

load more comments (1 replies)
[–] calcopiritus@lemmy.world 7 points 2 days 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.

[–] henfredemars 22 points 2 days ago (1 children)

Hey! This was my first real job. Is Matlab code written by physicists who just recently learned programming.

load more comments (1 replies)
[–] tiredofsametab@fedia.io 20 points 2 days ago (1 children)

You got 3 letters?! Luck!

I worked at a japanese company whose engineers we're former NTT developers. Copypasta (i.e. not using functions), inefficient algos, single-letter var names, remote code execution from code as root, etc. good times!

[–] Skullgrid@lemmy.world 12 points 2 days ago (2 children)

single-letter var names

in kanji?

load more comments (2 replies)
[–] afox@lemmy.world 4 points 2 days ago

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

[–] mcv@lemmy.zip 4 points 2 days 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.

[–] Dadifer@lemmy.world 12 points 2 days ago (4 children)

Honest question: would an LLM be able to write useful comments in code like this?

[–] Gork@sopuli.xyz 20 points 2 days ago

It would probably struggle to see the larger picture. I can see it being used to add comments in self-contained functions though without too much difficulty.

[–] Zos_Kia@lemmynsfw.com 7 points 2 days ago

100% I use them a lot to ingest and understand shitty code for me. Of course it's not perfect, it's like having a colleague who's not super strong but has infinite patience for bullshit

load more comments (2 replies)
[–] Kolanaki@pawb.social 11 points 2 days ago

The only experience I have like this is when I wanted to see how the ARMA Life mod was doing certain things, but it was programmed by like 20 different people in 3 different languages. Most of it was in German and French.

It was easier to just to find my own way of doing what I wanted to do.

[–] TootSweet@lemmy.world 10 points 2 days ago (1 children)

The next row would be "boss fires you thinking Claude can maintain the codebase."

load more comments (1 replies)
load more comments
view more: ‹ prev next ›