MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xq77a7/itwasjustonevariable/19se9zrxuc5yb/
r/ProgrammerHumor • u/Excellent-Baker1058 • 19d ago
57 comments sorted by
View all comments
Show parent comment
1
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.
3
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.
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.
View all comments
Show parent comment
1
u/Roadrunner571 17d ago
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.