u/Satirosix

Any suggestion for making AI write understandable code?

Hi, I am in vibe coding related stuff for a month more or less, practicing and studying about it. Now I finally decided to maintain the generated code and ended up disappointed.

I have found redundant code, repetitive object initialization alternative flows that do not follow the same rules along the project...

I have experience for years programming in python, but wasn't able to modify a button functionality in a pygame MVP videogame without asking it to the IA again.

I am using MinMax 2.5 with OpenCode for pygame programming. I am forcing it to refine the code and to explain it, but it is barely improving the project.

On one hand I feel motivated by the power unleashed with the AI agents but on the other hand I don't trust the code for maintenance and in the long run.

Do you have any better experience? Any advice to make the AI code in a more structured and comprehensive way? Some skills or specific prompt patterns that you would recommend.

reddit.com
u/Satirosix — 1 day ago