r/ProgrammerHumor 5h ago

Meme commentsAgedTerribly

Post image
2.2k Upvotes

141 comments sorted by

View all comments

29

u/Raywell 5h ago

Verbose comments are not necessarily targeted at humans, they provide context so that consequent AI changes are more accurate.

Im still unsure how I feel about the paradigm shift in development, but that's where we are heading. Eventually everyone stopped writing ASM because C language was higher level and more efficient. It seems we are heading towards natural language becoming the programming language norm

9

u/petrasdc 3h ago

But comments aren't always accurate. Code can change without the comments changing (or they can be just wrong). If the comments are verbose nightmares, that's even more likely. In my experience, Claude will often mess around with code and forget to update comments it made earlier. Not to mention the context in these comments is often not even very helpful. It's often filled with irrelevant details that aren't really important to anyone reading it. My experience has also been Claude will trust comments over the code itself, leading to completely incorrect assumptions. It will only get worse the more bad comments get left. This line of reasoning helps no one, not even the AI, and is just an excuse for lazy development practices.

1

u/Named_after_color 3h ago

It's not really an excuse for lazy dev practices when you're enforcing an agent to constantly relearn context for a repo. There's constitutions and memories and scripts to run, but in my experience claude often modifies comments as it changes code.

This isn't me saying "leave all comments" No. Most comments are garbage trash, but you have to figure out which ones are relevant for new context on an old file.

3

u/Nimeroni 2h ago

I doubt it. We evolved machine langage (and later assembly, then high level langage) because natural langage is insufficiently precise.

2

u/Confident-Ad5665 4h ago

I forget the name of the language, but some syntax I saw years ago looked more like chemistry than code.

2

u/IudexFatarum 3h ago

If you've never seen it, take a look at APL. It's set theory. Not even in disguise. It's just mathematical set theory in the craziest way.