Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

Hi,

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


Comment on Re: Learning OOP
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://268082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-08-23 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls