this post was submitted on 27 Oct 2026
159 points (98.8% liked)
Programmer Humor
33823 readers
1746 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Have you tried having a frontier model redo it in a coding standard that you prefer? You can do that by simply asking it.
Dont knock it til ya try it.
No way am I going to trist AI on rewriting that. The entire underlying structure is so bad that feeding that into an AI model and tasking it with making a decent code structure out of it will very probably not work the way I want it to. AI is a tool that excels at small isolated tasks, but under no circumstance do I allow it to create the outline of my project.
Small isolated tasks? You only use it in 2024 or something maybe?
You don’t have to trust it, but it’s certainly valuable to learn what it can do.
If you break it into simple tasks, it's not that bad. For example, for each function, ask it to add reference parameters for the global variables used by that function, and to modify the call site accordingly
With tasks this small, you're not asking the LLM to think for you, you're just using it to automate a boring task
Once that's done, seeing each function's interface should make it easier for your brain to identify what further refactoring is needed