The main disadvantage of not knowing classic Perl OOP is that most of the existing code does not use Moose.

I feel that Moose is massive overkill for having mostly just a (somewhat) nice syntax for declaring your class properties. You also get class introspection where you can introspect the inheritance tree and (Moose-declared) fields of your classes through a defined API. Personally, I haven't seen any tooling that actively exploits this feature, like some enhanced debugger that lets you conveniently watch (Moose) objects, or a webpage that automatically generates forms for Moose objects, but that might be because I haven't looked closely enough or filtered them out by suspecting too much magic at play.

I think that tye's argument against Moose is that it leads to classes being little more than glorified hashes by making the bad things easy (autogenerating accessors) while bringing no support for the good things of Class/Object design, namely designing an API to interact with the object beyond getting/setting properties on the object.

So, what I'm trying to say, from my point of view, only knowing Moose will possibly prevent you from using/implementing a lighter-weight object system. It certainly won't prevent you from writing OOP-style code.


In reply to Re^5: OOP and derived classes by Corion
in thread OOP and derived classes by Anonymous Monk

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.