Pages

Wednesday, September 22, 2010

Technical Difficulties – Part 2

tech1

Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot.

HyperTalk Put the first bullet of the gun into foot left of leg of you. Answer the result.

Prolog You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain.

370 JCL You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried.

FORTRAN-77 You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you still can't do exception-processing.

Modula-2 (alternative) You perform a shooting on what might be currently a foot with what might be currently a bullet shot by what might currently be a gun.

BASIC (compiled) You shoot yourself in the foot with a BB using a SCUD missile launcher.

Visual Basic You'll really only appear to have shot yourself in the foot, but you'll have so much fun doing it that you won't care.

Forth (alternative) BULLET DUP3 * GUN LOAD FOOT AIM TRIGGER PULL BANG! EMIT DEAD IF DROP ROT THEN (This takes about five bytes of memory, executes in two to ten clock cycles on any processor and can be used to replace any existing function of the language as well as in any future words). (Welcome to bottom up programming - where you, too, can perform compiler pre-processing instead of writing code).

APL (alternative) You hear a gunshot and there's a hole in your foot, but you don't remember enough linear algebra to understand what happened. or @#&^$%&%^ foot.
comments-encouraged

No comments:

Post a Comment