Quick tip to make AI code better is just delete the comments. Usually they’re CoT that shouldn’t be there.
or, even better, block the model from writing comments entirely
hahaha 99.9% of the time this is accurate, especially when the comment is accurate and long
Yes, my favorite codebase to work in is one full of accurate and long comments that detail that making a function call it never called would cause problems because of the details of a function that gets called 3 layers deeper.