Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: "Correct" program style questions

by perrin (Chancellor)
on Oct 23, 2002 at 05:52 UTC ( #207299=note: print w/replies, xml ) Need Help??

in reply to "Correct" program style questions

Pros and cons of POSIX character classes? Con: I have never ever seen anyone use them before. Pro: they are portable.

I would suggest naming your variables $tainted_name and $tainted_color instead of $_name and $_color, to make it more obvious what you're doing.

Replies are listed 'Best First'.
Re: Re: "Correct" program style questions
by DapperDan (Pilgrim) on Oct 23, 2002 at 09:36 UTC
    ... or maybe something more terse like $t_name and t_color. That's just a question of style really though; I agree with your point.
      $t_name doesn't mean the same thing as $tainted_name. In general I suggest avoiding the impulse to abbreviate. It may make the code shorter, but it also makes it harder to read.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-10-22 06:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.