Mel Hynes (takhisis) wrote,
Mel Hynes
takhisis

Geek amusements

I think it's a sign that you're completely losing it when you start trying to translate song lyrics into code.

I actually had a real puzzler on the way home from work the other day, but I've since forotten it. Damn. I'm sure I'll remember at 3 AM.

At the moment my brain won't let go of gnawing on:
var a = "human";
 
function more(){
   if (a == a){
      a++;
      }
   more();
   }


Although it's slightly funny, it doesn't quite count, since STRINGS: YOU'RE DOING IT WRONG, and I don't think you can call a function from within its own original definition anyway, but I could be wrong on that one, since my brain is tapioca right now.

The one I was thinking of previously was much better, I had it very close to valid by the time I got home. I'll post it if I remember it.

Anyone else got some? :)
Subscribe
  • Post a new comment

    Error

    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.
  • 14 comments