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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||