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

Re^2: How would you simplify this code?

by elTriberium (Friar)
on Apr 07, 2011 at 05:46 UTC ( [id://897940]=note: print w/replies, xml ) Need Help??


in reply to Re: How would you simplify this code?
in thread How would you simplify this code?

That's a good comment, however what if these 2 (or other) attributes are only required in this subroutine and not in all subroutines of the class?

Replies are listed 'Best First'.
Re^3: How would you simplify this code?
by chromatic (Archbishop) on Apr 07, 2011 at 17:26 UTC

    Some classes work out that way. It's not necessarily a design smell.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found