Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 10, 2013 08:34 pm GMT

How Do You Structure JavaScript? The Module Pattern Edition

JavaScript is interesting in that it enforces no particular structure upon you. "Bring Your Own Organization", if you will. As I write more and more JavaScript in web app sites, this becomes more and more interesting. How you structure your JavaScript is very important because:

  1. Done right, it makes code easier to understand for others and yourself re-visting your own code.
  2. Having a decided-upon structure helps keep future code clean and encourages your declared best practices.
  3. It makes your code

How Do You Structure JavaScript? The Module Pattern Edition is a post from CSS-Tricks


Original Link: http://css-tricks.com/how-do-you-structure-javascript-the-module-pattern-edition/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks