Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: Perl Best Practices for naming variables (sv, av, hv)

by tye (Cardinal)
on Nov 09, 2012 at 05:00 UTC ( #1003068=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Perl Best Practices for naming variables (sv, av, hv)
in thread Perl Best Practices for naming variables

But ar, hr, and sr aren't any more recognizable than ra, rh, and rs (probably worse because, especially hr and sr, they are too recognizable as something else). I think aref, href, and sref would work fine. But if I want a prefix half that long, I'm going with av, hv, and sv. :)

- tye        


Comment on Re^6: Perl Best Practices for naming variables (sv, av, hv)
Re^7: Perl Best Practices for naming variables (sv, av, hv)
by Anonymous Monk on Nov 09, 2012 at 08:00 UTC

    they are too recognizable as something else

    :) I don't have much in the way of cultural bias, but I am biased against calling a reference a value -- sure its a value, sure its common in perlapi/perlxs , but not in the perldata...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-10-22 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls