Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(Ovid) Re: Favorite Descriptive Variable Name

by Ovid (Cardinal)
on Dec 21, 2000 at 21:33 UTC ( #47830=note: print w/ replies, xml ) Need Help??


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.


Comment on (Ovid) Re: Favorite Descriptive Variable Name
Download Code
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"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://47830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-08-20 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (116 votes), past polls