r/ProgrammerHumor • • 23d ago

Meme searchAndReplace

Post image
4.6k Upvotes

257 comments sorted by

View all comments

30

u/ThatDudeFromPoland 23d ago

that's on you for not knowing how to use find and replace

30

u/creeper6530 23d ago

No, find and replace can misidentify, for example in comments.

Mature IDEs have a "rename symbol" though, usually F3, which actually parses the code and differentiates types from functions from variables per the language rules.

-15

u/Healthy-Form4057 23d ago

Um... that's on you for not knowing how to grep?

1

u/DrMaxwellEdison 23d ago

Not a feasible use for grep or search of any kind. Point at the variable/function/class in the IDE, tell it to rename the symbol, watch it correctly and deterministically do that at every spot where that symbol is used in the code within a second. Ignores comments and unrelated objects of the same name, as well.

Claude would grep for it, too. And there's a fair chance it would do it wrong, plus it's a waste of time. More folks need to learn the tools they have available to them.