Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

$a and $b are bad variable names anyway

by petdance (Parson)
on Feb 28, 2002 at 14:30 UTC ( [id://148221]=note: print w/replies, xml ) Need Help??


in reply to use strict won't require explicit name for all variables?

And really, you shouldn't be using $a and $b as variable names anyway. Surely there is something more descriptive than $a and $b (or $field1 and $field2, or whatever) that shows the meaning of what those variables do.

xoxo,
Andy
--
<megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

  • Comment on $a and $b are bad variable names anyway

Replies are listed 'Best First'.
Re: $a and $b are bad variable names anyway
by Biker (Priest) on Feb 28, 2002 at 14:54 UTC

    I fullheartedly agree and I have told my co-worker so. As I mentioned in my earlier node, I wouldn't use such variable names at all.

    But the point was merely why we couldn't use the variable names as any variable name. Just imagine that in this specific case it did have a real meaning. (Which it didn't.)


    Everything will go worng!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-23 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found