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
you are viewing a single comment's thread
view the rest of the comments
[–] Dadifer@lemmy.world 11 points 1 day ago (3 children)

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

[–] Gork@sopuli.xyz 19 points 1 day 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.

[–] pinball_wizard@lemmy.zip 6 points 1 day ago

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

It can be better han nothing, but not really. The LLM faces the same challenge that any competent coder does: neither were present to learn the human, business and organization context when the code was first written.

[–] eager_eagle@lemmy.world 5 points 1 day ago

use the LLM to generate regression tests for the large file, then start refactoring it