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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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


chop it down to skimmable code

@args Ebony() Ivory() Harmony()

age of peter, sum of bob

In reply to Re^3: Coding style: truth of variable name (subroutine length) by Anonymous Monk
in thread Coding style: truth of variable name by perlancar

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-13 20:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found