I'd say the reason that a lot of people can use Perl without learning OO is a good thing. It means they can get things done without having to bother learning too much, a few basic commands and you have a useful program which you can understand.

Ever seen how much hand-waving most Java books end up doing when trying to explain what the 'public static void main' bit means in their Hello World programs? When people want to get things done (Which is the real purpose of a language) Perl doesn't stand in their way unless asked to.

Perl is a nice 'compromise' language which shapes itself around you rather than the other way around.

If people begin to want to write large programs they will (hopefully) read up in a few of the right places and realise the proper way to do this. Now is when they'll learn OO, and in my mind now is when they need to learn OO. Personally I don't consider Perl to be the ideal language to learn classical OO from, it uses too many of it's own mannerisms and when looking at OO Perl it's difficult to tell the wood from the trees.

All things considered though I don't think Java or C++ s the ideal language to learn OO either. Both are good languages which I do use (I was hired as a C++ coder here, and am sometimes called upon to give my own odd perspectives helping the main team which are Java people), but Java lacks too many things which I think OO programmers should know (Multiple inheritance, Operator Overloading, Pre and Post conditions.. etc.), and C++ both lacks them and adds in some tricksie memory handling. If learning OO is the goal I'd point people towards Eiffel. I'd never really suggest using it in production, though.


In reply to Re: Make Perl an OO language by Molt
in thread Make Perl an OO language by gildir

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.