Lately, there has been discussion of creating a new section where users could offer a donation in return for answers or code to fix their problem. Several people were skeptical about such a section, especially since money is involved and it would be difficult to draw the line on what should be provided for free and what would benefit from a donation. The section I've dreamed up is nothing of the sort, though I think I started brainstorming from those posts.

I think it would be fun, educational, and helpful for many of us if we could have a section called something like 'Hard Coder' (okay, my name sucks, as I'm not very imaginative. I'm expecting you guys to come up with a half-decent name). This section would allow monks to post code that already gets the job done, but the person would like to recieve advice and guidance as to how the code could be improved. Example advice would be on where and how to go about removing redundancy, adding good programming tidbits (such as -w, use strict, CGI for web-based scripts, etc), and perhaps providing code to replace certain snippets within the script.

So what kind of benifits could we see resulting from such a section? Well, here's a short list I came up with:

So it seems to me that a system such as this is a Win-Win-Win situation (3 wins: the person asking for help, the people posting advice, and the spectators who read the thread). The system would work something like this: someone comes along and posts their script. Maybe they even point out where they think their code needs improvement, but they admit they don't know how to go about making it better. Others come along, look through the script and see some 'problem areas/topics'. They reply to the original post, indicating what they have found and suggesting how one could possibly go about fixing it. After people stop adding comments, the original poster finishes the improvements to the script and then posts the resulting code for all to see. If the new code still has some issues, discussion can then continue once again.

This one sounds great to me; I'm interested in hearing other opinions on this matter.


"User error. Replace user and press any key to continue."


In reply to Proposal for new section: Code Improvements by Coruscate

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.