Re:Gemini 2.5 Pro Preview: even better coding performance
by brandall10 on Tuesday May 06, 2025 @11:54AM
(#43906541)
It's certainly annoying, but you can try following up with "can you please remove superfluous comments? In particular, if a comment doesn't add anything to the understanding of the code, it doesn't deserve to be there".
[ Parent
| on HN ]
Re:Gemini 2.5 Pro Preview: even better coding performance
by diggan on Tuesday May 06, 2025 @12:23PM
(#43906883)
I'm having the same issue, and no matter what I prompt (even stuff like "Don't add any comments at all to anything, at any time") it still tries to add these typical junior-dev comments where it's just re-iterating what the code on the next line does.
Re:Gemini 2.5 Pro Preview: even better coding performance
by tough on Tuesday May 06, 2025 @01:32PM
(#43907614)
you can have a script that drops them all
Re:Gemini 2.5 Pro Preview: even better coding performance
by shawabawa3 on Tuesday May 06, 2025 @12:45PM
(#43907114)
You don't need a follow up
Just end your prompt with "no code comments"
Re:Gemini 2.5 Pro Preview: even better coding performance
by brandall10 on Tuesday May 06, 2025 @04:23PM
(#43909270)
I prefer not to do that as comments are helpful to guide the LLM, and esp. show past decisions so it doesn't redo things, at least in the scope of a feature. For me this tends to be more of a final refactoring step to tidy them up.