reason number #586 why programming sucks.
Dec. 3rd, 2002 11:25 pmI 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.
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.
no subject
Date: 2002-12-04 01:52 am (UTC)no subject
Date: 2002-12-05 12:10 pm (UTC)Unfortunately, I never got to see if this worked, as it was on a written test that he never got around to handing back.
Oh, and for the record, handwritten coding tests are a pain in the ass, an evil matched only by the Java language itself!
...gods, I miss the good ol' days of learning C++...
its good to know that I'm not alone amongst my friends in suffering the curse that is Java lessons. Although I am deeply, deeply sorry that you have to go through this too kat ;)