In this post by vroom a point is raised that I think is even more valid today than when it was written in March 2000.

This site has way too many places to paste code: Snippets Section, Cool Uses for Perl, Perl Poetry, Code Catacombs, Obfuscated Code and Craft. Not to mention the ability to place <code> tags inside any post to any section.

Some of these sections overlap considerably. Some of them (namely Perl Poetry and Obfuscated Code) are for particular types of code.

Delinearating between the others (Snippets Section, Cool Uses for Perl, Code Catacombs and Craft) is extremely difficult. Snippets is obviously for things that aren't complete scripts, but couldn't they also be posted to either of the other two sections? And couldn't an Obfu similarly be considered a Snippet?

My Suggestion
While I'm posting this suggestion, it comes from a range of Monks in a CB chat. The suggestion is to only allow posting to a 'Code Repository' section. Inside the Code Repository are sections that editors or Level 6ers or (...) then allocate to sub areas inside the repository. (similar look to the Perl Monks FAQ, but without the 'top level' posts under the categories, and put the categories at the top)

I'd suggest that when its posted to the Code Repository it appears on the front page of that section until its 'categorised' as above. This means that there's no immediate pressure for people to do the allocating.

This methodology will also allow people to quickly find something in there. If its code, its in the Repository. If its a CGI I'm looking for, I can funnel down the category tree until I find what I want. (Maybe submissions allow a suggested category tree?).

Now I think we should keep Poetry and Obfu. They're not really there for re-usable code. The rest should all be lumped into the 'Code Repository'.

Update: Added Cool Uses for Perl (thanks pfaut)


In reply to The Plethora of Code Sections by BigLug

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.