3 ms·
The main benefit of abstraction isn't to reduce keystrokes; it's to break a program into comprehensible chunks of operation. Routines that are conceptually ide
by nfw2 2y ago
The main benefit of abstraction isn't to reduce keystrokes; it's to break a program into comprehensible chunks of operation.
Routines that are conceptually identical should share an abstraction. A concept might benefit from an abstraction even if it is only used once. It is never too early to add more intuitive abstractions to your code.
On the other hand, code that is only coincidentally similar in execution should never be forced to share an abstraction.