Examples of practical javascript object oriented design patterns

The following are three popular JavaScript patterns. These happen to be easily implementable because of closures:

  • The Module Pattern – Example (and made popular) by Eric Miraglia
  • Memoization – Example by Oliver Steele
  • Currying – Example by Dustin Diaz

You may also want to check out:

  • Pro JavaScript Design Patterns by Ross Harmes and Dustin Diaz

The following is a Google I/O talk from 2008 presented by Diaz, where he discusses some topics from his book:

  • Google I/O 2008 – Design Patterns in an Expressive Language

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)