Composition is wrong
Opened this issue · 4 comments
All the notes on composition are wrong. More details in this reddit thread. This unfortunately is a bit of misinformation that has been spreading through the JavaScript community like a virus, where one blogger regurgitated what he read from another blogger, who had regurgitated what he read from another blogger, who had just made up some BS.
Props to your mini-crusade correcting this for years (not intended negatively!)
Is there something we can do (apart from just correcting people each time this comes up) to get the word out and defeat this virus of misunderstandings about composition vs inheritance? We need a vaccine for it.
Maybe some viral blog articles from major thoughtleaders (Dan Abramov & co.) that very clearly explain the differences between them with digestable examples, with clear contrast between correct and incorrent.
@atomiks Ideally the bloggers and YouTubers would take down their misinforming content. Until and unless they do that, unsuspecting newbies will continue to be infected with and spread that misinformation. Sadly I have little hope those bloggers and YouTubers will actually do that.
If a thought-leader such as Dan Abramov put out an article to explain the issue... I would optimistically hope that it would have a significant impact... but I could also pessimistically imagine it not having much of an impact at all. It's unfortunately a common trend that incorrect but dramatic stories spread faster and farther than the more dull correction or retraction.
@Jeff-Mott-OR, @atomiks Thank you for pointing this out, I had no idea.
The notes on that part are from Mosh Hamendani's course, who is a highly respected teacher, and who I believe knows his stuff.
Interesting that he also spreads the misinformation, I will try to contact his about this.
I will read more about this subject and update the notes accordingly.
@Jeff-Mott-OR I've seen several of your comments on this topic in different forums. I'd like to join @atomiks in thanking you for persistently correcting the misinformation on what composition is.