Skip to content

Instantly share code, notes, and snippets.

@amcdnl
Last active December 10, 2015 08:28
Show Gist options
  • Save amcdnl/4408197 to your computer and use it in GitHub Desktop.
Save amcdnl/4408197 to your computer and use it in GitHub Desktop.
Organizing a one-page JavaScript Application

Organizing a one-page JavaScript Application

Why Important

Imagine your body with no bones not organized in any shape or fashion. You would be a pile of mush with a bunch of spikes sticking out in random places.

Now imagine if those bones were all in the same place. You'd be a stick.

Organizing your application is important because:

  • Maintainability
  • Structure
  • Speed of Development

Examples of Bad

RequireJS, Backbone, all encourage bad structures.

My Approach

Name of the game is modularize.

  • App
    • Table
      • Scroller
      • Resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment