Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apps That Talk Back (Codementor)

Apps That Talk Back (Codementor)

Avatar for Rebecca Murphey

Rebecca Murphey

March 25, 2015
Tweet

More Decks by Rebecca Murphey

Other Decks in Technology

Transcript

  1. BVTracker.error({      name  :  errorMessages.IMPLEMENTATION,      detail1  :

     'No  productId  is  defined',      detail2  :  component.name   });
  2. define({      errors  :  {        

     IMPLEMENTATION  :  'Implementation  Error',          API  :  'API  Error',          UNCAUGHT  :  'Uncaught  Exception',          CONFIG  :  'Configuration  Error',          THIRD_PARTY  :  'Third  Party  Service  Error',          TIMEOUT  :  'Request  Timeout',          UI  :  'User  Interface  Error',          FRAMEWORK  :  'Framework  Error'      }   });
  3. var  spawn  =  require('child_process').spawn;   var  command  =  'grunt';  

    var  commandOpts  =  ['check:push'];   function  onExit  (code)  {      if  (code  !==  0)  {          throw  new  Error('Prepush  check  failed  with  exit  code:  '  +  code);      }      process.exit(code);   }   //  Run  it  !!   var  child  =  spawn(  command,  commandOpts,  {  stdio  :  'inherit'  }  );   child.on('exit',  onExit);  
  4. BVReporter.assert(      this.componentId,        'View  '  +

     this.name  +  '  must  have  componentId'   );
  5. ✅ assertions ✅ git hooks (jshint, jscs, unit tests) ✅

    error classification & reporting ✅ production monitoring ✅ production debugging ✅ build size monitoring ✅ performance instrumentation ⬆️ error alerting ⬆️ performance monitoring ❌ performance budget