Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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.


Comment on Re: "Correct" program style questions
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-12-28 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls