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

Re: I fear my code is unreadable

by pc88mxer (Vicar)
on May 06, 2008 at 16:02 UTC ( [id://684990]=note: print w/replies, xml ) Need Help??


in reply to I fear my code is unreadable

Another thing you could do is to put in a comment about what the fragment of code does. I.e., something like:
# Compute the maximum width of any key or value in %lists # and add a padding. my $col_width = ...
or just take a few sentences to explain what's going on.

Replies are listed 'Best First'.
Re^2: I fear my code is unreadable
by chromatic (Archbishop) on May 06, 2008 at 16:20 UTC

    ... or you could stick that fragment of code in a subroutine or method whose name describes what it does.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-26 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found