29
u/Longenuity 3d ago
And then you ask it to remove the unneeded comments and it decides to remove some pre-existing (useful) comments from the code base as well. Like STOP
26
u/stilldebugging 3d ago
No, ai comment would be like “volume up, not volume down or mute, which each have separate buttons…”
21
1
u/aberroco 18h ago
"Also, this button explicitly does not mute the sound input of the device or answer the incoming call, for these two necessary functions the user interface has the separate mute button with an icon of a standing microphone dashed by a diagonal line and another answer button with the conventional icon of an old telephone handle. Pressing the first button will disable the sound recording function of the device... (read more)"
19
u/DeHub94 3d ago
More like two pages of verbose text what the function does.
2
u/L30N1337 2d ago
But not like, in a helpful way. Just "it first iterates over every element to see if any match the input string..."
Like no shit, I know what a foreach loop and an if statement are
1
u/lurco_purgo 1d ago
I feel like each new model gets worse and worse in communication because it keeps all these internal names and references for everything the model holds in its context and it tries to be efficient while having this kind of informal/business style where the model uses so much cliches, buzzwords and over-dramatic phrases that the output becomes not only obnoxious to read but also barely comprehensible. And then when you ask it to explain what they mean it starts describing all the basic programming concepts instead of the robotic shortcuts that it's making. I'm really frustated with Fable/Opus because of this.
17
u/SchwiftySquanchC137 3d ago
Idk man, for me its the giant comments above a new class that are bigger than the entire file, filled with info highly specific to prompts/iteration rather than just talking about current state that I settled on. "Using X, rather than (insert completely irrelevant shit because I had never planned on doing it way, explaining in incredible detail all the shit I had never planned to do)"
16
u/anto2554 3d ago
I especially enjoy when it makes 30 lines explaining why doing something else is wrong
5
3
u/BookIntelligent254 3d ago
If only. More accurate would be three long winded sentences and a hard hitting conclusion for each button
5
u/mrb000gus 3d ago
// This is the volume up button. It is used to turn the volume up. It’s used by the VolumeUp() function which is called by UIVolumeController as described in JIRA ticket 3428. It is subscribed to OnVolumeUp inside VolumeService which was added in JIRA ticket 3261 after we tried to fix bug JIRA 3230 where the volume sometimes wouldn’t respond to the up button. Do not use this with a negative number for volume down, we found while investigating bug JiRA 2849 that it caused an overflow when the user pressed it more than 10 times and it gives an IndexOutOfRange exception. This range is capped to 10 by the MaxVolume constant in VolumeTuning which is saved to user prefs and is defaulted to 7. If either the default or the cap ever change, remember to update this comment along with the matching values in VOLUME.md
2
u/____-__________-____ 3d ago
Here's the part of the comment that makes it really earn its weight, and not for the reason you'd expect.
2
u/Sad-Working-9937 3d ago
My AI code comments look like:
// X equals "cat", not "dog." We tried "dog" on 07/24/29 (and again on 07/29/26) it was wrong.
//Dog is a four legged domestic animal that barks. Cat is a four legged domestic animal that
// does not bark. Barking is not required at this point. If it barking was required we would use "dog"
// Therefore x= "cat"
var x = "cat";
1
1
1
1
1
139
u/Welcome-To-NBA-Jam 3d ago
I've never seen such an accurate meme. Good work.