The recent discussion at Some thoughts around the "is Perl code maintainable" discussion got me to thinking about the PM obfuscated code section. One of the posts talked about the Perl culture's love for obfuscation. My first reaction was a) not me, I don't like obfu or golf and rarely read posts containing them and b) the fact that some people like obfu and golf doesn't mean that the Perl community as a whole thinks they are good ideas in production code. My guess is that even people who enjoy obfu rarely use it in their day jobs. So then I began to wonder, if that's true, would it be worth stating so explicitly here at PM? I'm thinking of an extra sentece or two in the description at the top of the obfu section along the lines of:

Obfuscation and golf can be fun and can help hone skills useful in writing real code, but they are not meant to be, in themselves, good examples of Perl code. Post and read here to impress and be impressed with minutia, but put your production oriented code in the Code Catacombs or Meditations sections. In other words kids, do try this at home, just don't try it at work! :-)

That's probably a little heavy-handed but can maybe get some discussion going about what we'd like it to say.

update : corrected link to Code Catacombs, added formatting


In reply to Better labeling of obfuscated code section by jZed

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.