2 ms·
The only time I abstract something into a function even if it’s only used in one place, is if the generic case is as easier or easier than the code for the spec
by jimbokun 2y ago
The only time I abstract something into a function even if it’s only used in one place, is if the generic case is as easier or easier than the code for the specific case.
But that’s a judgment call based on experience.