4 ms·
Extracting a single-use function can get in the way of future refactorings that cross the function's boundary. I inline single-use functions whenever I see them
by cousin_it 18y ago
Extracting a single-use function can get in the way of future refactorings that cross the function's boundary. I inline single-use functions whenever I see them, and almost always after that, other, more useful possible refactorings become visible. This can happen with multiple-use functions too, but much less often.