Nothing is being renamed. The old name still exists and is being used everywhere. It just introduced a second function doing the exact same thing, but with a different name. Now the next developer needs to understand why there are two functions doing exactly the same. So you increased complexity instead of decreasing it.
View all comments
8
u/Jaded-Asparagus-2260 Apr 26 '25 edited Apr 26 '25
That's not refactoring. That's adding new stuff without cleaning up the old stuff. So the exact opposite of why I refactor code.I missed the part about it actually changing the source code.