the one and only truly amazing katster (katster) wrote,
the one and only truly amazing katster

  • Mood:

reason number #586 why programming sucks.

I had to write a recursive program that would take a string and return it backwards. For example, if I put in java, it would need to return avaj.

I spent the last twenty minutes chasing the bug that made garage print as "egarag". Until it dawns on me that if you slice the e off garage, it's a palindrome, and that's not printing as last letter rest of word, it's printing the right answer. :P

Twenty minutes chasing a non-bug. I'm slipping.
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.