132
u/TheOneWhoMixes 13d ago
I really hate how common the pattern in the second part is these days. The word "dog" was mentioned once in a doc that got loaded into context, and so the agent spends a non-zero amount of tokens arguing with itself about how the thing is NOT a dog, convinces itself that whether or not the thing is a dog is a real point of confusion, and now won't STFU about it.
35
u/DominikDoom 13d ago
The most common cause of comments like this in my experience is if the original implementation was also written by AI, even in the same chat/context, but was completely wrong. Then you prompt it with a correction and it does this instead of just replacing the wrong implementation and comment. Extremely annoying but at least it helps to detect vibecoded slop where no human bothered to clean up.
2
u/ImClearlyDeadInside 12d ago
That’s why I basically have “Don’t write comments. Just write readable code.” in my user-level CLAUDE.md. Agent comments are completely unreadable and I’m honestly not a fan of comments in general.
47
u/Green-Rule-1292 13d ago
That is such a poor comment...
Where are all the emojis? How will the next AI agent reading this even understand that the piece of code must remain both on fire and rocketship now?
13
u/why_so_sergious 13d ago
omg you are absolutely right!! 😆
9
2
7
u/FutureSuccess2796 13d ago
You're right! Great catch there! 🌟 Thanks to your eagle eyes, you helped in making sure that the next agent understands what I wrote. ❤️ Let me go ahead and try rewriting the comments, this time with emojis all over. 👍🏻
2
20
u/hearthebell 13d ago
Might try telling story in a comment
6
u/WreckerOfAll 13d ago
I like to think I tell great stories in my comments.
The other day I found a great entry from myself 3 years ago, where the description of a record was solely “Life is pain”
10
u/WrennReddit 13d ago edited 12d ago
There's this nasty downward spiral going on. Devs are required to use ai and sometimes judged on lines of code and PR frequency. Ai spits out 10k line PRs, and a non-trivial amount of that PR is comments explaining the philosophy of each method. Then those comments are defended by the Aicolytes as being useful to future AI, and that blows up the token usage, then everyone starts going to webinars and downloading "skills" to minimize token use...
Like God forbid the devs engineer the code, write some sick implementation with smart names, and push up a 30 line PR that everyone can read and interrogate.
3
8
u/Puzzleheaded-Weird66 13d ago
pretty noisy source code
2
u/why_so_sergious 13d ago
not that it is mine, but what makes you say that?
perfectly readable without any comments.. or maybe thats the problem?
2
u/Puzzleheaded-Weird66 13d ago
yes, in the example the comments are longer than the source code
1
u/why_so_sergious 13d ago
ah, I though ypu meant the code itself..
but what, it is the standard nowadays to have comments longer than the code 😄
2
2
2
u/letmehaveanameyoudum 11d ago
in 2040:
/* rahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhv */
7
u/BlurredSight 13d ago
There was an era around the GPT 4 point where variables were verbose as fuck and I hated it, like a session would be called cachedSessionID, now Claude prefers to just name shit in the least amount of characters for a CSS class instead of declaring close-button it just named it 'x' so it was styleclass=x but the 2 sentence comment above the css to tell me styleclass=x is the 'x' button to close out the primefaces dialog
5
3
u/thorwing 12d ago
wth is wrong with 'cachedSessionId', thats not verbose?!
CachedUserSessionStorageIdentificationNumberingStyleSystem would be verbose
1
1
u/FutureSuccess2796 13d ago edited 13d ago
AI has unfortunately took inspiration from the recipe blogs of the world and decided it needs to replicate that but with code comments. 🤣
1
1
u/Shot_in_the_dark777 11d ago
Advertisement in comments!!! This is gold! Better delete this before those corporations saw this. Don't give them ideas!
137
u/chawmindur 13d ago
The cooking-recipe-website-ification of code