Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Class::*

by eduardo (Curate)
on Jun 27, 2000 at 23:57 UTC ( [id://20067]=perlquestion: print w/replies, xml ) Need Help??

eduardo has asked for the wisdom of the Perl Monks concerning the following question:

I am an OO programmer by training, so the concept of reinventing the wheel is both painful and irresponsible to me. I am in the process of attempting to code a largish OO system in perl (parallel genetic algorithms framework, in case any of 'yall are interested in working on this with me.) And I was looking through CPAN, like every good perlmonk should do before they attack a problem, and I encountered the Class::* heirarchy. Both MethodMaker and NamedParams seem like very VERY interesting classes to use to take some of the... drudgery out of OO programming (get/set methods, and the sort...) However, I have no experience with either one of those packages, so I am at a loss which one would serve me better as a foundation for my OO heirarchy?

Replies are listed 'Best First'.
Re: Class::*
by jeorgen (Pilgrim) on Jun 28, 2000 at 01:56 UTC
    I'm using MethodMaker for an application (a log analyzer). I'm very happy with it; it saves a lot of coding of standard get/set methods.

    It also allows for get/set methods with arrays and lists of objects, among other things. I'm sticking to MethodMakers lists and scalars so far, but you can use the scalar attribute to store an object, so that you can do:

    $foo = $obj->stored_obj_slot->stored_obj_method;

    without resorting to the get/set methods explicitly made for objects in MethodMaker.

    MethodMaker is one of those modules which you just can't unzip and drop in perl's library; it needs to be installed.

    Maybe you already know how to do these things, if not, I've made a guide here for Linux and NT. (Skip the three first paragraphs in Swedish, they just say that the rest is in English :-).

    /jeorgen

Re: Class::*
by wayne keenan (Novice) on Jun 28, 2000 at 16:57 UTC
    STRONGLY recommend Object Orientated Perl by Damien Conway, outstanding book. YOU WILL NOT GO WRONG BUYING THIS BOOK!
      Which actually brings up a point for me... let us say I do want to buy this book, has perlmonks set up some type of affiliate program with any of the book sellers so that I may buy the book through the perlmonks link and get vroom his 15% kickback? I mean, that doesn't seem like it would be too much of a hassle, and although the revenue generated might not be huge, it might be a nice little side-trickle!
Re: Class::*
by eduardo (Curate) on Jun 28, 2000 at 00:37 UTC
    I also just ran into POE (the perl object enviroment) and I wanted to know if anyone has had any experience with that system also...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://20067]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-28 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found