Just another Perl shrine | |
PerlMonks |
Re: Refactoring just to refactor?by swl (Parson) |
on Jun 28, 2019 at 01:46 UTC ( [id://11102055]=note: print w/replies, xml ) | Need Help?? |
I would leave the existing code as it is. You could perhaps modify it when next you are working on that area, and then only if it can be justified on the basis of speed and/or clarity. And WRT speed, I have not tested, so others could comment on whether there is a meaningful difference, if any at all. edit immediately after posting: And one should ensure there are tests in place to ensure the code functions correctly after a change.
In Section
Meditations
|
|