Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
Besides those misunderstandings pointed out by Fastolfe, I'd have to say that the style of the program is pretty much dictated by who, other than you has to maintain it.
For instance, I just changed jobs, and my old programs were picked up by someone else.. so the code I wrote tended to be much in the "traditional style" of programming, using very little of perl's inherint shortcuts, and I formatted my code to look much like my CS teachers would've wanted. Why? because on the first day, my supervisor (the other perl programmer in the group) took a look at some code I had, and asked "What's this 'use strict' and 'use Socket', do you have to download those from CPAN?
however, when I do stuff for myself, it tends to be on the light side, utilizing as many shortcuts as I can and trying to be as original as possible while still keeping it simple enough that I don't have to pull out my "Perl In a Nutshell" book everytime I want to know what I was referring to here and there.

That's just me though, and maybe I'm insane, it a good possibility actually :)


-brad..

In reply to RE: Regarding style by reyjrar
in thread Regarding style by footpad

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.