Discussion: Javascript Patterns

Let's explore popular design patterns in Javascript!

Stoyan Stefanov's "Javascript Patterns" is an introduction to some of the more popular Gang of Four patterns. The beauty of this book is we get to see those patterns applied in Javascript. Learning the classic design patterns (and when to use them) will allow us to write more beautiful, structured, efficient, and maintainable Javascript.

If you'd like to be the go-to expert on a pattern in this book, let the group know so we can grill you with all sorts of questions.

I believe that in order to solidify our understanding of the material, we must actually apply the patterns in code.  Therefore, I created a Github repo with the intention of applying the patterns from the book via little prototypes and code samples.  Feel free to issue a pull request if you'd like to contribute.

Github repo: https://github.com/eaturspinach/javascript-design-patterns

Amazon link: http://amzn.to/16RzagC 

See you at the next discussion!

Join or login to comment.

  • Ken P.

    This is the third time the book author has showed up at the meetup. It doesn't get any better than that. Stoyan's the man!

    1 · October 11, 2013

  • Jane

    I agree with Alex, this is a stellar meetup. :)

    And am also motivated by his timely follow up to follow up myself with the Airbnb JavaScript style guide I mentioned. Most of the conventions within this are covered in the first couple chapters of the book and are also relatively Crockford compliant as well.


    It will take me a bit longer to refind the right revealing module pattern link I was thinking of... but when I do I will post that as well.

    1 · October 8, 2013

  • Alex M.

    that was great one again!
    About having a let(x) statement lighter than an anonymous function call
    I got from a Kyle Simpson talk at OSCON:

    function test2(a) {
    // fake/transpiled ES3 emulation of `let (b=2) {...}`
    try{throw 2;}catch(b){
    a += b;

    if (typeof b !== "undefined") throw "Test failed";


    1 · October 8, 2013

    • Joe F.

      Here is a jsperf benchmark with a few dozen results comparing IIFE vs try/catch. I'm not able right now to benchmark ES6 `let` blocks though. http://jsperf.com/blo...­

      October 8, 2013

  • Susan T.

    I enjoyed the discussion and I look forward for the next meetup (and a new Javascript book to read).

    2 · October 7, 2013

Our Sponsors

  • O'Reilly Books

    Discounted print book or ebook list prices, and raffle prizes

  • Pearson Education Group

    Discounted print book or ebook/video list prices, and raffle prizes

  • Moovweb

    Hosting, snacks, and drinks for the group

  • Zencoder

    Graciously providing a meeting space, plus pizza and drinks!

People in this
Meetup are also in:

Imagine having a community behind you

Get started Learn more

We just grab a coffee and speak French. Some people have been coming every week for months... it creates a kind of warmth to the group.

Rafaël, started French Conversation Group

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy