Re:The Wrong Abstraction (2016)
by lucbocahut on Sunday July 05, 2020 @06:18PM
(#23742597)
Abstractions have other purpose than deduplication. They make it easier to reason about your code as well. It might be the smartest thing sometimes to abstract away the first occurrence in a method imho.
Sure, but some comments on here are literally saying that. Not as a rule of thumb (although such comments can be found here too, which is ok), but as a "as an engineer I always enforce this rule" thing.
Absolutes like that are rarely good advice.