Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: OO style question: how much information to hide?

by sauoq (Abbot)
on Jun 11, 2003 at 00:49 UTC ( #264922=note: print w/ replies, xml ) Need Help??


in reply to OO style question: how much information to hide?

I much prefer the explicit version.

I would be inclined to code it like that even if the module didn't require me to do so. If nothing else, it would avoid useless method calls.

I don't think it would bother me if the module didn't enforce that though. It seems to be in the spirit of giving enough rope... and I might be glad of it when needing a quickie throwaway script or a one-liner.

-sauoq
"My two cents aren't worth a dime.";


Comment on Re: OO style question: how much information to hide?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-12-26 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (167 votes), past polls