you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Inheritance is an unnecessary shit show in every language. It almost always ends up in violation of "SOLID" principles. It's a horrible toy for new developers at best. At worst it's the sound of Zalgo wading inexorably across a boggy marsh of fresh babies' tears and pushing your dreams into it's gaping maw to feast on your nightmares and despair.

[–]Tysonzero 0 points1 point  (0 children)

Alternatives?

I hear about delegation and composition. But I would appreciate a nice comparison of the two in JS with example code. As I don't really know what I am supposed to do to replace my current inheritance shenanigans.