This isn't necessarily what BrowserUK was talking about, but this thread reminds me of an old design argument of mine: Styrofoam and porcelain.

Porcelain solutions are beautiful and elegant. They take a long time to make and are decorative. They are heavy. When you pour hot coffee in them and pick them up, you burn your hand. When you drop them, they break.

Styrofoam solutions are simple. They can be cranked out by the barrelful. They are lightweight and cheap. They insulate better than porcelain, and don't break when you drop them. If you crumble one up and throw it away, and then need another one, no worries. Just grab another.

So the question is: Is code re-use more like porcelain, or more like styrofoam? A CPAN module is like styrofoam. Easy to grab and install. Free. There are many alternative approaches to common problems on file, all ready to use.

Proprietary code? Code your company pays you to make? I guess it would depend on the company and the author. You can go out of your way to make something elegant and beautiful, and not be aware of how fragile or insecure it is.

Go CPAN. Go open source. Go styrofoam.


In reply to Styrofoam and porcelain by delirium
in thread Re-use: moderation please. by BrowserUk

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.