The template method design pattern has earned my dislike. Multiple times already I've seen how eventually there is that special case that has to do things differently in such a way, that the base algorithm is no longer suitable. Good luck fixing it without breaking anything (there probably will be a child that has some expectation/workaround in it's design).
Inheritance in OOP helps until it doesn't and then you'll have hard time dealing with infinity of children.
[#]programming #oop
=> More informations about this toot | View the thread | More toots from aurisc4@floss.social
=> View programming tag | View oop tag This content has been proxied by September (3851b).Proxy Information
text/gemini