http://www.perlmonks.org?node_id=47830


in reply to Favorite Descriptive Variable Name

I was working on a program once where the author named his variables after different types of alcohol. One line in the program was:
COMPUTE MARTINI = GIN + VERMOUTH.
I could have killed him.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re: Favorite Descriptive Variable Name
by Blue (Hermit) on Dec 22, 2000 at 19:42 UTC
    I've occasionally punned with variable names. One I like (and I forget where I first saw it) was %cornedbeef. (corned beef hash). I've been do to do { ... } until $cows_come_home; or { ... } until $hell_freezes_over; for nigh-endless loops.

    When I'm not being creative, I find myself occasionally using junk variables like $stuff, $stuf, $stuph, $morestuff, $yetmorestuff, $evenmorestuff, $toomuchstuff, so on and so forth.

    =Blue
    ...you might be eaten by a grue...

      When calling the function phish() or moe(), I'll often pass the %|. Especially because I don't need it. ;)

      japhy -- Perl and Regex Hacker
        Oh man, you should be stoned to death for that one... Also, I was happy to see that the hippy spirit is alive in perl, perl -we 'my %|;' =)

        --
        $you = new YOU;
        honk() if $you->love(perl)

Re: (Ovid) Re: Favorite Descriptive Variable Name
by Fengor (Pilgrim) on Dec 28, 2000 at 20:24 UTC
    I once reviewed a program with lots of cinematic references like:
    MOVE INDIANA_JONES TO TEMPLE_OF_DEATH
    cheers, fengor
    --
    "WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN" -- Terry Pratchett, "Reaper Man"