Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

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

What’s amazing is that the Perl community not only accepts and encourages bad code, it’s outright hostile to those who don’t.

Are we in the same community? I’ve seen that sort of behaviour in isolated programmer cliques that have no connection to the Perl community at large and where Perl is used for what are deemed throwaway tasks – such people often develop weird notions about the value of cleverness or even outright golfing. But the larger community? Perlmonks has a sometimes unhealthy obsession with strict and warnings. I’ve been evangelizing three-arg open, tightly scoped variables, the use of foreach(LIST) over for(;;) etc. wherever it isn’t too wildly off-topic. There were long threads about inside-out objects on Perlmonks ages before they showed up in Perl Best Practices. TAP, the Test Anything Protocol that originated from the Test::Harness family of modules, is being absorbed by other languages. I could go on endlessly about the ways in which the Perl community really cares about code quality and is at the forefront of innovation and evangelism in that area.

I’m not saying you can’t use those features, but the level of hackishness and amateurism I see regularly in Perl scripts is appalling. It seems like terseness wins out over clarity every single time.

No doubt, but the level of roundabout pretzel logic and amateurism I see regularly in Java code is appalling too. It seems verbosity wins out over clarity every single time.

Terseness is not the opposite of clarity. That’s verbosity. Clarity lies somewhere half-way between the extremes, but finding the balance that achieves it is a really hard discipline that few people master.

Makeshifts last the longest.


In reply to Re: Perl is dying (“hostile to good practice”?) by Aristotle
in thread Perl is dying by Anonymous Monk

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 sharing their wisdom with the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found