Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Coding style: truth of variable name (subroutine length)

by Anonymous Monk
on Apr 19, 2020 at 10:01 UTC ( [id://11115789]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Coding style: truth of variable name (subroutine length)
in thread Coding style: truth of variable name

My subroutines can range from just a few lines to over several hundred lines long. I do have to question your claim. What makes variable names much less important than subroutine names? Variables are referred to much more often.

isnt it obvious? subroutine length, obviously :)

these are all identical for a screen full (40 to 100 lines) dir dir0 entry arg module modulepm file path ana

entry arg anal dir0 are the shit versions from least to most. But only cause I dont actually think that way.

Even they doesnt increase cognitive load... Var names only need to be close enough.

hundred lines long ... arg1 arg2 arg3 subtask1 subtask2

never

chop it down to skimmable code

@args Ebony() Ivory() Harmony()

age of peter, sum of bob

  • Comment on Re^3: Coding style: truth of variable name (subroutine length)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-20 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found