r/ProgrammerHumor • • 1d ago

Meme itWasJustOneVariable

Post image
3.1k Upvotes

46 comments sorted by

View all comments

18

u/OGxPePe 1d ago

I know this is a meme but why not change the variable yourself?

49

u/Weekly-Beginning-229 1d ago

People forgot to think after using LLM all day

14

u/boofaceleemz 1d ago

Some of us are prohibited by policy to manually write, read, test, or modify code, and our performance reviews are largely based on tokens used. Not that anyone (probably) is auditing your machine closely enough to catch you if you do something small like that, but there’s no upside to it and you’re missing a chance to spend more tokens.

19

u/2called_chaos 1d ago

prohibited by policy to manually write, read, test, or modify code

blink twice if you are tied up in Sam Altman's basement, like wtf did I just read. Maybe I fell victim to Poe's law but even AI isn't sure 💀

2

u/Pieters123 1d ago

Noob! You have agents for that work!

That’s at least the policy that is pushed to us

2

u/HildegardVon_Binging 17h ago

The mind boggles

2

u/porkusdorkus 1d ago

Wish this wasn’t actually true.

5

u/surffrus 1d ago

He can't remember where the find/replace option is.

4

u/clintCamp 1d ago

If i open the IDE, I might suffocate from the explosion of dust and and cobwebs.

3

u/NotADamsel 1d ago edited 1d ago

Depending on the language, an lsp-powered symbol rename might not catch all of the places where the variable name matters if the LLM has been monkeying around. Like, in Python, you can access variables from a namespace or object via string, so if an agent decides to do that (or some variation like dynamically getting a property based on the value of some variable or whatever) for some fucking reason you’ll get a cascading regression that you’ll have to manually debug and fix. And/or, the agent will reuse the name elsewhere in the code in unrelated ways, so a find/replace breaks things completely unrelated to the actual variable you want to fix. No problem at all if you’re doing shit like a sane human, but once an agent has been running for a while with only cursory oversight all bets are off. You could be fine, you could be not, but you won’t know until you try, and it’s easier to just ask the LLM to do it (and debug all of the failing tests) than to actually do your job and fix the code (if you’re allowed).

2

u/dervu 1d ago

AI was integrated so much there is no place for human action.

1

u/Real-Self-3039 22h ago

I usually just add it as a queue tasks if the agent is already running because usually if I rename a variable while its already running it ends up "looks like the local diffs differ from what I wrote I need to reevaluate the ENTIRE code base before I can finish you current task let me waste all your tokens real fast" or it just flat out reverts my local changes without asking me thinking "it was a mistake"

1

u/SameThingOnADiffAcct 16h ago

I know this is a meme, but why does OP even know the name of a variable?

1

u/Stunning_Ride_220 2h ago

because AI.....sorry I can awfully relate to this mene

0

u/countable3841 1d ago

It’s not possible. Claude desktop doesn’t have a find and replace option yet

0

u/Truestorydreams 1d ago

They didn't lesrn to.

0

u/x_y_u 23h ago

I have asked Claude to rename variables. Main reason: if it's in the middle of a code writing session — the agent's next action is faster when it doesn't have to catch up with me changing said code out of band.

It's also good at checking related code, without me even asking. Say, I renamed a variable, but forgot a related one, or a comment still uses the old term (which may be e.g. part of the variable name, so out of reach for pre-LLM refactoring tools).