top | item 27097331

(no title)

ehw3 | 4 years ago

I guess you'd call this "de-factoring?"

discuss

order

MauranKilom|4 years ago

Not sure. I'd argue that "refactoring" (also by its name) is less about eliminating duplication but rather about restructuring in general. Sure, in many (most?) cases you introduce new abstractions into code that was written before those abstractions could be clearly identified. But in my understanding it is just as much about replacing or (rarely) removing abstractions. When I see a commit that says "refactored X" I certainly don't assume there is only code deduplication in it.