I did much of myl earning (computing degree) just as OO was becoming fashionable, but before it got into my course content. So I've known of it's existance for a long time, but never used it. The texts I've started reading about OO cover encapsulation, and I think "but I can do that anyway" and then inheritance (usually with very artificial examples: is a circle a parent or child of an ellipse?).

So I've got turned off the idea of OO because the official approach to it takes far to long working through the basics before presenting me with anything genuinely new.

On the other hand I've found the perldoc explanations (perltoot) amazingly useful: they take the attitude "you already know how to program. Why would you want to use OO techniques as well" Which is exactly the approach I want. I don't have any difficulty writing simple OO code. Now I just need to find something that's actually better written using OO than by normal methods.

(For comparison, on that last point: I've had to write some C libraries at work to make our Oracle database provide the same API as our really, really old Unify system. Then the existing code doesn't need to be rewritten. I've implemented an equivalent of DBI and DBD::Oracle in C. It works great, 'cos I really like the DBI interface, but it's not OO, where the original is. I don't notice any difference in use.)


In reply to Re: Reactions to OO-Perl by tommyw
in thread Reactions to OO-Perl by pjf

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.