r/ProgrammerHumor • • 19d ago

Meme itWasJustOneVariable

Post image
3.5k Upvotes

57 comments sorted by

View all comments

22

u/OGxPePe 19d ago

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

54

u/Weekly-Beginning-229 19d ago

People forgot to think after using LLM all day

16

u/boofaceleemz 19d 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.

23

u/2called_chaos 19d 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 19d ago

Noob! You have agents for that work!

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

2

u/HildegardVon_Binging 18d ago

The mind boggles

1

u/InStars 15d ago

You can just switch to heavier model to use more tokens. Also here we have a monthly limit on tokens so by the end of the month you have to use the cheapest possible model.

3

u/porkusdorkus 19d ago

Wish this wasn’t actually true.

2

u/Roadrunner571 17d ago

I'd rather have the LLM take over these chores while I spend my time on stuff that should be done by humans (or grab a coffee)

1

u/Weekly-Beginning-229 17d ago

Press F2 type the new name of the variable, press enter.

Or wait 1-2 minute for the LLM to fix it while you let your brain detoriate

1

u/Roadrunner571 17d ago

Press F2 type the new name of the variable, press enter.

And then spend half an hour debugging why it's not working, e.g. that specific variable name mapped to a database field in a third party system. LLMs do catch these kind of issues.

3

u/Weekly-Beginning-229 17d ago

Well if your local variable affects other systems then i think something else is wrong

1

u/Roadrunner571 16d ago

In a large codebase that grew over decades and got code from many company mergers, there might be a few surprises.

I've seen some crazy stuff.

But even with good code, renaming can break something. Imagine a part of an SDK that can break if you rename a function that third-party code calls.

5

u/surffrus 19d ago

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

4

u/clintCamp 19d ago

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

3

u/NotADamsel 19d ago edited 19d 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).

3

u/Real-Self-3039 19d 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"

2

u/dervu 19d ago

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

2

u/JosebaZilarte 18d ago

Because the LLM will change it later, when you are not looking. So why bother? It is no longer your code, after all.

1

u/SameThingOnADiffAcct 18d ago

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

1

u/Stunning_Ride_220 18d ago

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

0

u/countable3841 19d ago

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

0

u/Truestorydreams 19d ago

They didn't lesrn to.

0

u/x_y_u 19d 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).