Ahh yes. Why must we all do this, once? This is certainly in the list of "things reinvented by Perl programmers as a rite of passage", just like templating systems, CGI form parsers, command-line argument decoders, generic object attribute systems, object persistence, deep-copying algorithms, and the like. ... Please Don't Reinvent The Wheel needlessly.

You're a Perl trainer and I think you should know better. Re-inventing wheels is a great way to learn a language. Besides, if no-one reinvented wheels, we would never get better modules. It's not always good to worship a module and never reconsider its entire design.

CGI form parsers are a great way of learning how split works, and how hashes work.

Building a simple templating system is a great introduction into the world of substitutions.

Parsing @ARGV manually can really improve your splice skills.

Home brew object attribute systems and object persistence creations are to many a good way of OO self-education.

Deep-copying alghorithms teach how to use recursion, and/or how to avoid it.


I think that stopping people from re-inventing the wheel stops people from learning.

U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk


In reply to Re: •Re: Object oriented architecture question by Juerd
in thread Object oriented architecture question by apprentice

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.