4 ms·
> 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 JavaScri
by 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.