4 ms·
>I have found that OOP with inheritance is actually a form of tight coupling and that it is best to not use class hierarchies [..] I just completely disagree wi
by 000ooo000 2y ago
>I have found that OOP with inheritance is actually a form of tight coupling and that it is best to not use class hierarchies [..] I just completely disagree with inheritance in all forms
This is pretty common advice (at least IME), usually distilled into the form "prefer composition to inheritance".
- bhouston 2y ago> This is pretty common advice (at least IME), usually distilled into the form "prefer composition to inheritance". I think this is why in the current JavaScript era, it is rare to find a popular library that makes significant use of inheritance (as opposed to just supporting interfaces) even though it is supported in the language. ThreeJS is one of those exceptions, but they are few and far between.