3 ms·
It's called the strategy pattern. Look it up. If you find yourself writing a lot of boilerplate code, you're doing something wrong, whether you're using inheri
by InclinedPlane 16y ago
It's called the strategy pattern. Look it up.
If you find yourself writing a lot of boilerplate code, you're doing something wrong, whether you're using inheritance or not.
- nradov 16y agoYes, I've read that book too. For many of the cases I deal with the strategy pattern is not appropriate, or creates additional complications. Try again.
- InclinedPlane 16y agoShould we raise this discussion to the level of concrete examples? Pastebin perhaps?