We don't bite newbies here... much | |
PerlMonks |
Re: How to deal with old OO code that mixes instance methods with class methodsby educated_foo (Vicar) |
on Dec 21, 2013 at 04:34 UTC ( [id://1068013]=note: print w/replies, xml ) | Need Help?? |
3. Convert them to standalone utility functionsDo this. It was fashionable for awhile to add more rightward arrows to your code (see e.g. File::Spec vs. File::Spec::Functions). Then the fashion was to write standalone functions that dealt with this "OO" nonsense and call them a "DSL". All of these options were terrible.
In Section
Seekers of Perl Wisdom
|
|