Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Religion in the Monastery.

by logan (Curate)
on May 04, 2003 at 03:24 UTC ( [id://255417]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Religion in the Monastery.
in thread Religion in the Monastery.

Programming Perl also uses %Flintstones and %Simpsons as examples. I don't hear anyone complaining about that. And as far as picking names for variables, the names should mean something. For example, if I was coding a robot, I might use $gypsy, $crow, or $cambot as variable names because I'm a fan of Mystery Science Theatre 3000, and it's a mnemonic device. By the same token, someone who is a serious Christian might use biblical figures to accomplish the same purpose.

Here's an example, although you'd be unlikely to see it in the real world.

A system is password-protected. In order to make the login more difficult, you have to enter your login and password three times. Each time, you will be denied access, and asked to try again. After three failed attempts, security leaves you alone, and you can enter. You might call this section of code "Peter", because the apostle Peter denied knowing Christ three times, even though he did know him. Another section might monitor user behavior, and report improper behavior back to the admin so the user can be removed. It wouldn't be reaching to call that section "Judas", because it betrays the user.

I'm not a Christian, but I love a good pun, and I appreciate the amount of work that goes into an extended metaphor. If a person can understand their code better by using Biblical names, go nuts. As long as useability isn't hindered, say by making a variable name $I_am_going_to_hell_because_I_took_the_Lords_name_in_vain, who cares?

-Logan
"What do I want? I'm an American. I want more."

Replies are listed 'Best First'.
Re: Re: Re: Re: Religion in the Monastery.
by diotalevi (Canon) on May 04, 2003 at 05:44 UTC

    Heh. This reminds me of an anonymous remailer I wrote for work called "Penet".

Re^4: Religion in the Monastery.
by pemungkah (Priest) on Jul 23, 2011 at 21:07 UTC
    I'll file the MST3K variable name idea, thanks. I rather like that one. Lots of potential for lovely in-jokes while being educational.
    $host_preference = $joel || $mike; open my $hexfield_viewscreen, "<", "/dev/rocket_number_9";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-19 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found