I tend to agree with this point, if not the spirit of it, but in that OO is generally supposed to be more disciplined and fringe behavior is discouraged...however I am reserving judgement based on the flawed ISA/HASA hierachy given in the OP. If this were fixed, maybe I would understand the examples in #1-#3 better. Nothing wrong with inventing a few new idioms...that is, if they don't introduce design/maintainance problems.

Given, discipline is very important. But also there is some "evil" in Perl that is also cool, because, yes, deep within us all, we know that sometimes evil is cool. It is for this reason that I like listening to Heavy Metal music sometimes :) No, seriously... sticking to form is important in OO, but OO is oft controversial as to what is 'good form'.

Over-use of singletons, factories, accessors, and other P.C. methods can be disasterous to an application -- just as 'evil' can. Both 'evil' and 'good' have their uses, and 'good' in the wrong place can have 'evil' results. Thus it is important to know both the good and the evil. It's a Taoist sort of thing. Ok, I just confused myself.... Carry on!


In reply to Re: Re: Re: inheritance and object creation by flyingmoose
in thread inheritance and object creation by knew

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.