This is to say that I know that it's not an all or nothing decision to use OO techniques, but I feel like, where we are using it, we're not taking full advantage of its capacities. I came to this conclusion while reading through Fowlers Refactoring and as I'm reading through the "Bad Smells in Code" chapter I'm seeing a lot of things that we're doing.

As we've discussed both here and elsewhere quite frequently and also very recently, it's officially OK in Perl to speak only a subset of the language, and OO makes no difference. Of course just as in all those other respects, this is not an excuse for not improving one's knowledge of the language if wanting to use it regularly. Code smell is a whole another story, and you should actively work to remove it: learning what's wrong with some code constructs and see what people do instead, may be a good starting point for your improved learning of the OO dialect of Perl.


In reply to Re: Really Writing Object Oriented Perl by blazar
in thread Really Writing Object Oriented Perl by agianni

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.