Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Philosophy of a "new" method

by pajout (Curate)
on Feb 04, 2011 at 10:06 UTC ( #886176=note: print w/ replies, xml ) Need Help??


in reply to Philosophy of a "new" method

Yes, TIMTOWDI :>)

I think about such themes in this way:
Q: What goal I have?
A: To obtain new object instance in meaningful state.
Q: How to do it?
A: Start with simplest new() method and gradually add initial data structures. If it starts to be too chaotic, improve it, for instance using init() inside new(). If it, after some development, does not fit requirements well, develop other mechanism...


Comment on Re: Philosophy of a "new" method

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-07-04 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls