▲ 327 ▼ OOP at home: (thelemmy.club) submitted 6 months ago by freddo@feddit.nu to c/programmer_humor@programming.dev 89 comments fedilink hide all child comments
[–] abbadon420@sh.itjust.works 7 points 6 months ago (1 child) Aggregation > composition > inheritance permalink fedilink source parent hideshow 2 child comments replies: [–] criss_cross@lemmy.world 2 points 6 months ago Was gonna say just this. Inheritance is powerful but something to reach for sparingly. 80% of the time aggregation and composition can solve the problems. I’ve cleaned up too many inheritance nightmares in my day from people who insisted inheritance was the way to go. permalink fedilink source parent
[–] criss_cross@lemmy.world 2 points 6 months ago Was gonna say just this. Inheritance is powerful but something to reach for sparingly. 80% of the time aggregation and composition can solve the problems. I’ve cleaned up too many inheritance nightmares in my day from people who insisted inheritance was the way to go. permalink fedilink source parent