Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(tye)Re: Object Oriented Perfomance

by tye (Sage)
on Apr 23, 2001 at 19:38 UTC ( [id://74729]=note: print w/replies, xml ) Need Help??


in reply to Re: Object Oriented Perfomance
in thread Object Oriented Perfomance

So, the question for your stuff is, do you need inheritance.

When deciding on whether to use OO, inheritance is never in my the calculations and performance rarely is. In Perl at least, the main reason to use OO is that you need more than one "object", that is, a collection of data that you define some operations on. If you need more than one collection of data and more than one operation (especially if the number of operations is large or likely to grow), then OO is a good choice.

You can do inheritance via Exporter.pm, using closures, or AUTOLOAD (to name a few), with or without the ability to create objects.

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found