JavaScript Patterns

added by JavaScript Kicks
11/10/2014 7:54:55 AM


A JavaScript pattern and antipattern collection that covers function patterns, jQuery patterns, jQuery plugin patterns, design patterns, general patterns, literals and constructor patterns, object creation patterns, code reuse patterns, DOM and browser pattern


Drew Peterson
11/10/2014 6:41:37 PM
This is awesome! On the very first example (function declaration), I found that I never use the most optimal choice. I'm going to start using the named function declaration syntax from now on. @RobertTheGrey @paulwheeler @andrewmrobbins @buzzdecafe Confession time! What anti-patterns are you guilty of?

Robert Greyling
11/10/2014 6:51:56 PM
Haha, I'm probably guilty of pretty much every one in the book! But that's how we learn right :) Straight off I can see I've done plenty of those conditionals in the past, might even be some more recently! Don't wanna check too deeply just in case Santa scratches me off his list :)