Hashemian Blog

Web Tools, Financial Markets, Technology

Friday, January 04, 2008

Pain and Program Exceptions 

Happy new year. Not so much for me. The new year was marked with a wicked lower back pain. An irritating bulging disk that gets inflamed every now and then and pinches the nerve, radiating pain everywhere. Guess that's just nature's way of manifesting my age to me. Yes I know, I'm not in my twenties anymore. Haven't been there for quite some time and the longer I live the further away I get.

So what do? Just add the back pain to the foot pain, added to the hamstring pain, added to the knee pain, and I have a nice variety of aches and pains.

I suppose pain is body's exception system. If you're a programmer, you know what I'm talking about. An exception in a program is raised when something totally unexpected happens in the running code and needs immediate attention. Good coding practice dictates that programmers anticipate and compensate for all possible errors before their code is hit by an exception. But sometimes there's no avoiding it.
  • A number gets divided by zero - an exception is raised.

  • A missing file is referenced - an exception is raised.

  • A piece of data doesn't fit inside a database table column - an exception is raised.

  • An XML stream is missing a tag - an exception is raised.
Graceful code is supposed to catch the exception, alert the user, and halt. After all something catastrophic must have happened and continuing the program could mean entering an invalid and unknown state. I admit, I've broken that rule a few times by catching an exception, logging the issue, and continuing as if nothing had happened. Why should proper programs get all the running privileges?

Body pain works the same way. It's a signal that something's gone wrong and needs attention. One must correct the problem before continuing with normal activities. That's exactly what I had intended to do. Give my back a few days of rest before getting back to running again. Except that last night I saw a jogger in the freezing temperature and my jealousy meter went off the scale.

So tonight I resolved to go for a walk, only to naturally speed up to a jogging pace after a few steps. And thus I entered into the invalid state of pain, as in, not knowing how my back will feel tomorrow. Oh well, why should only healthy, pain-free people have the privilege of running?

,,,,

Labels: , ,

<Pain and Program Exceptions>

0 comments

0 Comments:

Post a Comment

This page is powered by Blogger. Isn't yours?

Links
  • Hashemian Blog Feeds
  • Add to Google
  • Read Hashemian.com/blog/ with Bloglines
  • Subscribe to Hashemian.com/blog/ with My Yahoo!
  • Technorati Profile
  • TMCnet.com
  • ARCHIVES
  • 09/01/2003 - 10/01/2003
  • 03/01/2004 - 04/01/2004
  • 04/01/2004 - 05/01/2004
  • 05/01/2004 - 06/01/2004
  • 06/01/2004 - 07/01/2004
  • 07/01/2004 - 08/01/2004
  • 08/01/2004 - 09/01/2004
  • 09/01/2004 - 10/01/2004
  • 10/01/2004 - 11/01/2004
  • 11/01/2004 - 12/01/2004
  • 12/01/2004 - 01/01/2005
  • 01/01/2005 - 02/01/2005
  • 02/01/2005 - 03/01/2005
  • 03/01/2005 - 04/01/2005
  • 04/01/2005 - 05/01/2005
  • 05/01/2005 - 06/01/2005
  • 06/01/2005 - 07/01/2005
  • 07/01/2005 - 08/01/2005
  • 08/01/2005 - 09/01/2005
  • 09/01/2005 - 10/01/2005
  • 10/01/2005 - 11/01/2005
  • 11/01/2005 - 12/01/2005
  • 12/01/2005 - 01/01/2006
  • 01/01/2006 - 02/01/2006
  • 02/01/2006 - 03/01/2006
  • 03/01/2006 - 04/01/2006
  • 04/01/2006 - 05/01/2006
  • 05/01/2006 - 06/01/2006
  • 06/01/2006 - 07/01/2006
  • 07/01/2006 - 08/01/2006
  • 08/01/2006 - 09/01/2006
  • 09/01/2006 - 10/01/2006
  • 10/01/2006 - 11/01/2006
  • 11/01/2006 - 12/01/2006
  • 12/01/2006 - 01/01/2007
  • 01/01/2007 - 02/01/2007
  • 02/01/2007 - 03/01/2007
  • 03/01/2007 - 04/01/2007
  • 04/01/2007 - 05/01/2007
  • 05/01/2007 - 06/01/2007
  • 06/01/2007 - 07/01/2007
  • 07/01/2007 - 08/01/2007
  • 08/01/2007 - 09/01/2007
  • 09/01/2007 - 10/01/2007
  • 10/01/2007 - 11/01/2007
  • 11/01/2007 - 12/01/2007
  • 12/01/2007 - 01/01/2008
  • 01/01/2008 - 02/01/2008
  • 02/01/2008 - 03/01/2008
  • 03/01/2008 - 04/01/2008
  • 04/01/2008 - 05/01/2008
  • 05/01/2008 - 06/01/2008
  • 06/01/2008 - 07/01/2008
  • 07/01/2008 - 08/01/2008

  • Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

    © 2001-2009 Robert Vahid Hashemian
    Support the effort
    Liked this page?
    Please consider creating a link to it
    from your Web site.

    hashemian.com
    هاشمیان.com

     Home

     Blog

     Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
    Usage

     News

     Articles

     FAQ

     About

     Contact

     Financial Markets Book
    Read Complete Book



    BOOK
    The Shack
    William P. Young
    $14.99


    BOOK
    The Trigger Point Therapy Workbook: Your Self-Treatment Guide for Pain Relief, Second Edition
    Amber Davies
    $21.95


    BOOK
    The Miracle Ball Method: Relieve Your Pain, Reshape Your Body, Reduce Your Stress [2 Miracle Balls Included]
    Elaine Petrone
    $17.95


    BOOK
    Pain Free: A Revolutionary Method for Stopping Chronic Pain
    Pete Egoscue
    $17.00


    BOOK
    Full Catastrophe Living: Using the Wisdom of Your Body and Mind to Face Stress, Pain, and Illness
    Jon Kabat-Zinn
    $20.00

    |pain-and-program-exceptions|

    more…




    Get Kindle

    aStore - Hashemian.com on Amazon

    Visits: Powered by hashemian.com

     

     

     

     

     

    Search Hashemian.com





    Probation and Parole: Theory and Practice (10th Edition
    $75.39
    Ends: Mon Jan 12, 2009 21:22:28 EST

    Straight from the Heart: My Life in Politics and Other
    $4.87
    Ends: Mon Jan 12, 2009 21:22:50 EST


    Human Anatomy and Physiology
    $35.00
    Ends: Mon Jan 12, 2009 21:22:52 EST


    BLACK CHEF COAT W/TRIM SIZE L FREE NAME AND SHIPPING!!!
    $26.99
    Ends: Mon Jan 12, 2009 21:23:09 EST


    BLACK CHEF COAT W/TRIM SIZE L FREE NAME AND SHIPPING!!!
    $26.99
    Ends: Mon Jan 12, 2009 21:23:13 EST

    more…