Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

pastry assassin
seal-mask
.a{fill-rule:evenodd;}techdegree
pastry assassin
Full Stack JavaScript Techdegree Student 11,693 Points

Javascript design patterns

I understand OO and I can understand what a JS design pattern is, but I'm feeling a little overwhelmed by the sheer amount of patterns available. I'm constantly asking "which one should I use?". Typically, what are some of the most common design patterns? What design patterns do you find yourself using? Thanks for any feedback.

1 Answer

Steven Parker
Steven Parker
225,726 Points

The question "which one should I use?" (regarding design patterns) should probably be asked at the beginning of every project. There's no one pattern that is ideal in every circumstance.

I found this neat article describing 4 JavaScript Design Patterns You Should Know with examples of where they are best used.

And I haven't taken it myself, but I noticed they have an entire course on JavaScript Design Patterns at Udacity.