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

Programmer Humor

27945 readers
102 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
[โ€“] JasonDJ@lemmy.zip 1 points 1 month ago* (last edited 1 month ago) (3 children)

Fork the repo.

Ask an LLM to rename all the variables and add comments and docstrings. Give it your style guide (assuming you have one).

Ask another LLM to check their work.

Done.

Disclaimer: I'm not a programmer, I'm a network engineer who dabbles in automation and scripting. But it seems to me that grunt work like this is what LLMs are really good for.

Also I only use short variable names inside of loops (for i in iterable...). Is that not how it should be done?

[โ€“] Gremour@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

In Go, the recommended convention for variable name length is to be proportional to their scope. It is common to use one or few letters long variables if they are local to a few lines loop or a short function.

load more comments (2 replies)