Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Learning OOP

by tos (Deacon)
on Jun 23, 2003 at 09:04 UTC ( #268082=note: print w/replies, xml ) Need Help??

in reply to Learning OOP


in my opionion it's a good place to start gathering experience with oop. I myself took several attempts with other languages as c++ or java. With c++ my problem was the insufficient knowledge of the basics of c. The java-attempt was to much academic.

With perl things became easier for me. This was above all the quite simple realisation (so it affects me) of oop in perl. Classes aren't anything different as packages, objects are blessed data-structures, mostly hashes of a particular class, methodes are simple subroutines in packages(classes). This took away any esoteric imaginations i've had before and i was really astonished how easy object-orientated behavior could be realized in a script-language as perl is.

Meanwhile i use my still growing oop-experience in real life applications with good success. Further development is due to perls flexibility relative simple. For studying more professional implementations i've a look in the CPAN.

So from my point of view i can absolutly recommend perl for learning oop. Try man perltoot as a first step.

greetings, tos

Replies are listed 'Best First'.
Re: Re: Learning OOP
by yosefm (Friar) on Jun 23, 2003 at 14:33 UTC
    I think you're over-simplifying it. Methods aren't just package subs, Classes are not just packages and object are not just blessed references.

    Sure, that's how it all works (in Perl). But the way of thinking is different.

    Objects are "more of the same" class, and their specific data can be handled with methods.

    But of course you already know that.... ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://268082]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2018-05-25 11:44 GMT
Find Nodes?
    Voting Booth?