Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Re: perl OO - to use or not to use

by IlyaM (Parson)
on Sep 14, 2003 at 19:47 UTC ( #291435=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: perl OO - to use or not to use
in thread perl OO - to use or not to use

First of all I'd like to mention that the syntax is secondary to the design of system. It is possible to express OO design using purely procedural syntax (case in point: first C++ compilers were actually just preprocessors which generated C code they feed to real C compilers). And of course it is quite possible to write purely procedural code using OO syntax.

The syntax meth($obj) will work as substitution for $obj->meth() until you need data abstraction (i.e. you don't have classes which share same interfaces, particulary your class tree is flat and you don't use inheritance). Some would argue that data abstraction is essential property of OO design and if a system doesn't use data abstraction it is not OO at all.

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org


Comment on Re: Re: Re: Re: perl OO - to use or not to use
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-26 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls