11 ms·
Search, replace it with a single call to unified method when there are more than enough repetitions in the code. Probably people just call it 'Refactor'. The
by mmis1000 4y ago
Search, replace it with a single call to unified method when there are more than enough repetitions in the code.
Probably people just call it 'Refactor'.
The requirement changes and you refactor it to meet requirement.
And that's all you need to do to avoid premature generalisation.