I’ve been working quite a bit as a ServiceNow developer these days and I couldn’t help but think about…”what if my life was built on ServiceNow?”  Specifically, what would code look like if I were to think the way ServiceNow behaves. For example, someone sent an email asking if a date for next week would be a good time to meet.  I couldn’t help but simply reply with week.next() = true.  As a father, I also couldn’t ignore coming up with this nice little script:

if (child.mood.get() == ‘crappy’)
{
  var excuseToLeave = new GlideRecord(‘things_to_do’);
  excuseToLeave.addQuery(‘active’,true);
  excuseToLeave.addQuery(‘location’,’!=’,’home’);
  excuseToLeave.query();
  while (excuseToLeave.next())
  {
     if (excuseToLeave.duration > 120)
    {
       var exitHome = new excusesToExitHome();
      exitHome.exitExcuse(excuseToLeave);
      break;
   }
  }
}
Since I’m a perpetual smart-ass, I’m sure I could think of several other “scripts” that would be applicable in life.  Does anyone else have something they’d like to add?  I’m curious to find out.

avatar

Started working in IT in 1999 as a support desk analyst as a way to help pay for food during college. Studied Electrical Engineering for two years before realizing biochemistry was more fun than differential equations, and so ultimately graduated with a Biology degree in 2006. Having (reluctantly) failed at getting accepted into dental school, embraced working in IT and has gone broke becoming an ITIL Expert. Likes to jog, sing camp songs, quote Mel Brooks movie lines and make dumb jokes and loves working for an Israeli tech company where December 25th is a regular work day.