Skip to content

Composite pattern #3

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

Open
nhaouari opened this issue Oct 21, 2018 · 0 comments
Open

Composite pattern #3

nhaouari opened this issue Oct 21, 2018 · 0 comments

Comments

@nhaouari
Copy link

nhaouari commented Oct 21, 2018

Thank you very much for this professional guide for design patterns.

I want to suggest a clearer definition Composite pattern:

Composite Pattern intent is to compose complex objects using other simpler objects into tree structures allowing the client(s) to treat these structures as if they were individual objects (Source: Mastering Javascript Design Third Edition)

Also, I think that the presented example does not reflect clearly this concept of compositions.

Best regards.

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

1 participant