Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composition is wrong #1

Open
Jeff-Mott-OR opened this issue Mar 31, 2019 · 4 comments
Open

Composition is wrong #1

Jeff-Mott-OR opened this issue Mar 31, 2019 · 4 comments

Comments

@Jeff-Mott-OR
Copy link

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.

@atomiks
Copy link

atomiks commented Mar 31, 2019

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.

@Jeff-Mott-OR
Copy link
Author

@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.

@8483
Copy link
Owner

8483 commented Apr 1, 2019

@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.

@StephenGrider
Copy link

StephenGrider commented Apr 11, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants