Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
deranged mutant gerbils from Dimension X
<DaveBarry> ... would be a great name for a rock band </DaveBarry>

I've learned the most about quality coding (not algorithms and fancy stuff, per se, just coding in general) from watching others screw up, not neccessarily here, but work, college, etc. You learn about writing maintainable clean code, code that you can understand 2 weeks later, the difference between meaningful and useless comments, etc. Sadly, it seems that many others don't gather this information, since they don't read code with their eyes open ... nor do they think more than a few hours in advance when writing code. These people need to be flogged :)

Also to be stressed is the fine line between idiomatic and transparent. They are not always the same, and given the choice of the two, I'll pick the later. map for instance is sexy, but if I want readability, often foreach takes a few less seconds to skim through, and that is pretty darn important. The alternative, of course, is equally dangerous, which brings me to the following anonymous quote: "Java is readable ... like a phonebook". That is, yep, you can read it ... but due to volume and verbosity, you really can't make any sense of it.

in all, it's all about fine lines and tradeoffs, the "right way" cannot be codified -- ever -- and thus is coding as art -- a Zen state seldom attained in purely mechanistic cube farm engineering -- the drones will attempt to list style rules, but they'll never understand the why of the style, nor will they know when to break with the rules.


In reply to Re: Note to Self: Read More Perl by flyingmoose
in thread Note to Self: Read More Perl by webfiend

Title:
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?
Username:
Password:

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

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

    No recent polls found