I'm of the opinion that 'fixing' code is fine - that's what it's for.
But there comes a certain point at which you're _hacking_ code. By which I mean that you're putting in things to work around other things that don't work the way they should.
That's about the point at which you start thinking about re-writing.
It's more difficult with multiple ownership of the code. Provided it's in the public domain, and that there is someone ready, willing and able to re-do it, then as far as I'm concerned, fair enough.
Now whether this actually _does_ get re-written or not, is largely a factor (from my PoV) of how much I understand the code, it's objectives and how it does it. And how much time I have free.
Most often it's 'urgent' and needs a fix yesterday, so I'll hack it. And make a mental note to come back to it 'when I have time'. Several mental notes flags it up as 'important' - there's an old systems admin adage - if you have to do something twice, then automate and script it.

In reply to Re: rebuilding working code by Preceptor
in thread rebuilding working code by jfroebe

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.