Think about Loose Coupling | |
PerlMonks |
Re: How would you simplify this code?by chromatic (Archbishop) |
on Apr 07, 2011 at 05:32 UTC ( [id://897933]=note: print w/replies, xml ) | Need Help?? |
If this were my code, I'd make both attributes required so that it's impossible (or at least unlikely, if you follow the API documentation) to create a Remote object without a valid resource and username.
In Section
Seekers of Perl Wisdom
|
|