Think about Loose Coupling | |
PerlMonks |
Re: Fun with Farcical Factories (Was: Re^4: Your favorite objects NOT of the hashref phylum)by BrowserUk (Patriarch) |
on Mar 28, 2006 at 14:37 UTC ( [id://539708]=note: print w/replies, xml ) | Need Help?? |
Although you've responded to your own post rather than me, I'll assume the guilt for 'now being dogmatic' :) I'll also accept the judgement that I'm "simply lacking in mental horsepower" to see how this works? Following on from your logger example. Each place in your application you have something like
Could you explain to me how you would arrange for the logging from someMethod to go to one file, and the logging from someOtherMethod to go to a different file without changing Some::Class? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|