r/ProgrammerHumor • • 20d ago

Meme itWasJustOneVariable

Post image
3.5k Upvotes

57 comments sorted by

View all comments

Show parent comment

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 17d 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.