in reply to Should I learn OO programming?

nysus wrote:

Is the fact that many modules are written with OO code good enough reason to learn Perl OO programming?

No. Many CGI programs are written using cgi-lib.pl. That's not really a good reason for learning that module (this is along the lines of "if all your friends jumped off a cliff..."). Instead, if you want to learn how to maintain OO code, that should be a good reason.

Of course you can get by without it. I can get by without ever buying new clothes or trying new food, but why would I want to?

Learning new ways of programming opens up ways of looking at things that you probably haven't previously considered. A great demonstration of this is reading tilly's post Why I like functional programming.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on (Ovid) Re: Should I learn OO programming?

Replies are listed 'Best First'.
Re: (Ovid) Re: Should I learn OO programming?
by gumpu (Friar) on May 23, 2001 at 23:38 UTC

    Also just as learning a new language (natural or programming) will get you a better insight into your 'own' language. Learing a new methodology will give you better insight in your old one. Same goes for learning functional or logical programming (ie. Prolog).

    The bottom line is that if you only know one thing it is difficult to compare it with something else.

    Have Fun