Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: OO best practice basic questions

by tobyink (Canon)
on Aug 27, 2014 at 20:16 UTC ( [id://1098806]=note: print w/replies, xml ) Need Help??


in reply to Re: OO best practice basic questions
in thread OO best practice basic questions

"However, from outside the class, it's normally preferred to abstract it and go through accessors"

Even from inside the class, you should access fields/attributes via the accessors. Otherwise you'll make life harder for yourself if/when you need to subclass your class.

"a good starting point is probably perlootut"

w00t! I just noticed that as of Perl 5.20, this document links to one of my modules. :-)

Log In?
Username:
Password:

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

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

    No recent polls found