I mostly agree, but there are probably situations where you want/need to use inheritance.
But more than that, I'm thinking here it might fit better to what Sandy Metz said "duplication is far cheaper than the wrong abstraction" than about the composition vs inheritance problem. (or you know... at least it's somewhat related to that)
Happy Holidays!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thatβs just belissimo dude, ROFL π€£π
On a serious note, thatβs why composition is always better than inheritance πͺ
Merry Christmas π
I mostly agree, but there are probably situations where you want/need to use inheritance.
But more than that, I'm thinking here it might fit better to what Sandy Metz said "duplication is far cheaper than the wrong abstraction" than about the composition vs inheritance problem. (or you know... at least it's somewhat related to that)
Happy Holidays!