addyosmani / essential-js-design-patterns

Repo for my 'Learning JavaScript Design Patterns' book
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
4.83k stars 792 forks source link

Order of Patterns makes comparisons less obvious #115

Closed rps closed 10 years ago

rps commented 10 years ago

The Constructor and Prototype patterns are very similar but are separated by five other less closely-related patterns. I think the presentation of these two patterns would be considerably amplified were they presented sequentially, with a discussion of the differences between the new operator and the Object.create method.

I think there's also a case to be made for grouping these two directly above Factory, Mixins and Decorators to really drive the ideas home.

addyosmani commented 10 years ago

Moving this into your other reported issue as I'll probably address both at the same time. Thanks for reporting again!