0 customers asked for it: Don't abstract it.
1 customer asked for it: Corner-case it.
2 customers asked for it: Strategy pattern.
3 customers asked for variations: Config option.
0 customers asked for it: Don't abstract it.
1 customer asked for it: Corner-case it.
2 customers asked for it: Strategy pattern.
3 customers asked for variations: Config option.
Save yourself the time and bother to dig back in again and solve it at least for the foreseeable future with less overhead than what it would take to tackle the same task again, typically getting in to do the job takes at least as long as doing the job in situations like that (just to make sure you didn't break anything by accident, test the works and so on).
If the overhead is constant and a 'small' fix like that takes 5 instead of 4 hours including all the extras then that's a trade-off worth making. Unless of course you're really under pressure.
If you find that "1 customer" (being a series of disparate customers) all ask for various minor tweaks to the way something works, then before you have half-a-dozen disparate forks in your logic you probably do want to pull that out and use a strategy pattern where applicable. It doesn't take many clever sidesteps in a clean algorithm to make a nightmarish scenario later on.
It's just a verbose way to perform the same abstraction. Use it only if function pointers are unavailable or considered unsafe in your programming language.