Ancestors

Toot

Written by Aurimas Černius on 2024-11-14 at 15:22

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 | More toots from aurisc4@floss.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113481990439756362
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
287.580579 milliseconds
Gemini-to-HTML Time
0.900806 milliseconds

This content has been proxied by September (3851b).