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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-05-27 01:58 GMT
Find Nodes?
    Voting Booth?