Thursday, January 21, 2010

Colloquialisms in Code

Both of my parents are from Tennessee. Per capita, Tennessee has the highest density of colloquialisms than any other place in the western hemisphere. So ... lets code them up. You can mouse over each item to show the original phrase it purports to represent. Note: the Javascript rollovers don't work in the RSS feed, only on the web page. So far as I know, its all akin to voodoo.


--------


justification = my_ass.pull();
I pulled the justification out of my ass.

--------


Drawer = Set(["knife1", "knife2"])
if not "sharpest" in Drawer:
Not the sharpest knife in the drawer.

--------


if not (hand[left].find(his_ass) ||
        hand[right].find(his_ass) ||
        flashlight.find(his_ass)):
He couldn't find his ass with both hands and a flashlight

--------


ASSERT(dead.val() > doornail.val());
Dead'er than a doornail.

--------


if (them.fitness == fiddle.fitness):
Fit as a fiddle.

--------


CHECK(!(water[FISH_CONSTANT]));
Like a fish out of water.

--------


error: prototype for 'Silk_Purse(Cows_Ear)' does not match any in class 'Silk_Purse'
You can't make a silk purse out of a sow's ear.

--------


interface Wagon {
  public:
    void Wheels();
}
class Grandma implements Wagon {
If Grandma had wheels, she'd be a wagon.

--------


Bricks[LOAD - 2];
Two bricks shy of a load.

--------


class Shadow {
 public:
  Shadow(Shadow); // copy constructor
}
class Person {
 public:
  Shadow Stand();
}

Person Skinny;
Shadow S(2 * Skinny.Stand())
So skinny they have to stand up twice to make a shadow.