Hacker News new | ask | show | jobs
by IneffablePigeon 1831 days ago
I agree with elements of both sides here but I do think there's one important difference with function and variable names, which is that they have to match between definition and usage.

If you refactor a function or variable to do something different, often it becomes obvious at the calling/usage site that something isn't quite right any more and the name gets fixed. Just having more instances of it gives you more opportunities to realise you need to fix the name.

It's absolutely not foolproof, you can obviously still have them get out of sync. I do find it's rarer, though, personally.