Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
There's nothing preventing your or any other company from writing their own coding guidelines and ensuring their code follows them by the means of code reviews.

Hear! Hear! I have maintained code in VB, Java, C# (a little), Perl, Pascal, COBOL, and RPG/400. Of those, VB, Java, and C# supposedly have "standards" that enforce maintainability of the code; and that's a damn lie -- or rather, that's marketing (which is worse).

Maintainable code is only ever quasi-guaranteed, but the only way I've ever seen it is when the dev team -- with the support and backing of management -- creates and enforces code style guidelines. The only time I've ever seen this done well is in a Perl shop.

This shop was a dream: code was checked into version-control via scripts which first ran PerlTidy with the corporate-standard options (and you could spec your own pass to your favorite style on checkout, but almost no-one did). Any style guideline that could be enforced by PerlTidy, was. The rest were handled by two-tier code review; we had peer-review which checked for style as well as good methodology and all the other peer-reviewy type stuff, and the repository maintainer reviewed solely for style-rules that weren't PerlTidy-enforceable (like "modules can be either OO or functional/procedural, but not both" and "subs that act on on non-scalar data must accept the appropriate reference (e.g. arrayrefs in place of arrays)").

I have never seen that level of commitment from any shop, and I have never seen an automated tidying-tool that worked as cleanly in automation as PerlTidy.

Larry Wall is Yoda: there is no try{}
The Code that can be seen is not the true Code

In reply to Re^3: How would you rewrite perl community? by radiantmatrix
in thread Would you rewrite perl community? by Eyck

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 learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found