Slide 1

Slide 1 text

Front End Ops Conf 2014 San Francisco • @rmurphey apps that 
 talk back

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

˒˒˒ ➞ $$$

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

˒˒˒ ➞ $$$

Slide 8

Slide 8 text

apps that talk back

Slide 9

Slide 9 text

keep you from 
 doing a bad thing

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

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);  

Slide 12

Slide 12 text

BVReporter.assert(      this.componentId,        'View  '  +  this.name  +  '  must  have  componentId'   );

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

tell you when
 you did a bad thing

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

BVTracker.error('No  productId  is  defined');

Slide 21

Slide 21 text

BVTracker.error({      name  :  errorMessages.IMPLEMENTATION,      detail1  :  'No  productId  is  defined',      detail2  :  component.name   });

Slide 22

Slide 22 text

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'      }   });

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

“scout”  file customer  requests  component(s) core  application  file data render  of  component  1 render  of  component  2 submission  
 interaction submission
 resources submission   render *  not  to  scale  (i  hope)

Slide 27

Slide 27 text

“scout”  file customer  requests  component(s) core  application  file data render  of  component  1 render  of  component  2 submission  
 interaction submission
 resources submission   render

Slide 28

Slide 28 text

identify things before they are things

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

help fix the things

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

priorities

Slide 38

Slide 38 text

✅ assertions ✅ git hooks (jshint, jscs, unit tests) ✅ error classification & reporting ✅ production monitoring ⬆️ production debugging ⬆️ build optimization via coverage analysis ⬆️ build size monitoring ⬆️ performance instrumentation ❌ error alerting ❌ performance monitoring

Slide 39

Slide 39 text

@rmurphey • rmurphey.com bazaarvoice.com