Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
There's two ways to look at this:

1. it's a mistake to reinvent the wheel if a good implementation matches your needs. If it's nearly there, consider adapting it, but don't reinvent.

This approach applies well to those focussed on getting the job done, to the end product. The proffessional job. Sometimes that's the right way to look at things. It's probably the fairest if someone is paying you to do the work (after all starting from scratch will probably take longer).

2. By all means reinvent the wheel. Then you'll see why I did it that way first. You'll make the same mistakes, probably abandon your project and then use my/someone elses existing one.

This approach might actually be the correct one if your main concern is process and understanding. The journey, but not necessarily arriving. Why? Because sometimes when it's not a job it's the learning thats important. In these circumstances, making the mistakes informs you of why other implementations did it that way in the first place. Then you can start afresh understanding more deeply an existing implementations (in terms of both it's strengths and weeknesses). You make an informed decision.

I must have programmed several hacked-up parsers (even after having completed my CS courses on parsers and compilers) before really understanding why the seemingly theoretical approach of my courses could be valuable. Now I know - a hacked together parser is probably not maintainable.

I personally think that a rounded programmer should practice both of these approaches. Probably the wasteful one in his/her spare time, but nontheless blindly applying approach 1. doesn't necessarily deepen your knowledge - which I personally value highly.

How's that for a bit of meditative thinking?

In reply to Re: Re: "Rites of Passage" wheel reinventing by geohar
in thread "Rites of Passage" wheel reinventing by dws

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (5)
    As of 2017-08-23 07:38 GMT
    Find Nodes?
      Voting Booth?
      Who is your favorite scientist and why?

      Results (348 votes). Check out past polls.