Building large JS apps

Building large JS apps

Alex MacCaw

May 31, 2012

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

91 slides
  1. “The secret to building large apps is never build large

    apps. Break your app into small pieces. Then, assemble those testable, bite- sized pieces into your big application.” - Justin Meyer
  2. H e a d e r Stage Element Element Dimensions

    Background Border Border Radius Shadow Opacity Inspector
  3. #app .inspector .background { .edit { margin: 10px } .gradientPicker

    { margin: 0px 5px 5px 5px } &.disabled { .list { opacity: 0.6 } } }
  4. $0

  5. var Inspector = function(){ this.stage.selection.bind('change', this.paint.bind(this)); }; Inspector.prototype.paint = function(){

    if (this.rendering) return; this.rendering = true; requestAnimationFrame(this.render.bind(this)); }; Inspector.prototype.render = function(){ // ... this.rendering = false; };

More Decks by Alex MacCaw

Other Decks in Programming